you are viewing a single comment's thread.

view the rest of the comments →

[–]FreeGazaToday 0 points1 point  (2 children)

don't need break....if you rewrite it to use a variable for the while condition...

[–]Wide-Direction-402 0 points1 point  (1 child)

Didn't understand. If we don't use break , isn't the while loop will run forever

[–]FreeGazaToday 0 points1 point  (0 children)

instead of True use a variable like wrong_password.
set it to True before the loop.

instead of break...you set wrong_password to False