Why variable “i” is working as separate variable in the below program?

前端 未结 0 1922
一向
一向 2020-12-28 11:37
s="geeks for geeks"
for i in range(len(s)):
    x=0
    print("first "+str(i))   #value of i in different
    if (s.find("geeks",i))>         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题