0
Infinite loop and breaking it.
i=0 while 1==1: print (i) i = i + 2 if i>= 20 print ("It's enough") break What's mistake here? Please let me know it and even its solution.
5 Respostas
+ 1
i=0
while i<20:
print(i)
i=i+2
print("It's enough")
+ 1
thanks Farid
but i wanted to create an infinite loop and break it rather than just a conditional.
could you help me with that.
+ 1
Your code is alright, but there is a missing : after if statement. And indentation are not right
+ 1
my pleasure
0
oh yeah , thanks Rishi đđ
didn't see it đđ