Advertisement
Guest User

Loop not breaking?

a guest
Mar 7th, 2014
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | None | 0 0
  1. choice = -1
  2. while choice != 0:
  3.   # Code that asks what the user wants to do, etc. When 0 is chosen, the loop doesn't break.
  4.   choice = raw_input()
  5.  
  6.   # Exit the loop.
  7.   if choice == 0: break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement