Saturday, 7 September 2013

How to stop the while loop?

How to stop the while loop?

Newbie in programming and need something like this but it doesn't stop the
while condition even after entering a string starting with '0x', and it
keeps calling the function.I tired putting 'break' instead of increasing i
value, still didn't work. Any one knows why?
i = 1
while i < 2:
call_fun1()
if hx =='0x':
i+=1

No comments:

Post a Comment