Skip to content

Instantly share code, notes, and snippets.

@kaydell
Created October 9, 2013 18:43
Show Gist options
  • Save kaydell/6906054 to your computer and use it in GitHub Desktop.
Save kaydell/6906054 to your computer and use it in GitHub Desktop.
This is a demo of doing a loop that happens one or more times in Python 3
while True:
# read number from user
# if the number is in the range to exit, then break out of this loop
if n >= 1 and n <= 10:
break
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment