for i in file:
if i == 0:
break
else:
y = i[0]
for k in gile:
~~~~
break
if i write something like this, which line does the program read after the second break?
thanks
for i in file:
if i == 0:
break
else:
y = i[0]
for k in gile:
~~~~
break
if i write something like this, which line does the program read after the second break?
thanks
the second break stops the current loop it's in so it should return to the first loop
"Why not try it yourself to see what happens, you can use print statements to see where the program is heading"
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.