Skip to content

Instantly share code, notes, and snippets.

@Artanis
Created January 10, 2012 23:42
Show Gist options
  • Save Artanis/1591956 to your computer and use it in GitHub Desktop.
Save Artanis/1591956 to your computer and use it in GitHub Desktop.
str-in
def main():
while True:
user_input = raw_input("Enter 'q' to exit: ")
if user_input in ('q', 'Q'):
break
if __name__ == '__main__':
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment