Maybe that's a stupid question and a stupid mistake by me but i can't get this control flow to work. here is my simplified code:
for x in range(1,10):
print(x)
if x==2:
print("working")
break
else:
print("stop")
here is the result on shell:
1
2
working
Anyone can help me?