Last active
July 22, 2018 10:20
-
-
Save SiAust/487ded4015d948847f5baf935107a0ba to your computer and use it in GitHub Desktop.
An interactive loop in python. Takes user input to exit the loop.
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
"""A short program using user input in an interactive loop""" | |
q = False | |
while not q: | |
user_quit = input('Quit?(y/n): ') | |
if user_quit == 'y': | |
q = True |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment