Created
October 9, 2013 18:43
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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