Skip to content

Instantly share code, notes, and snippets.

@danhyun
Last active August 29, 2015 14:05
Show Gist options
  • Select an option

  • Save danhyun/544e6b8977b9b9109133 to your computer and use it in GitHub Desktop.

Select an option

Save danhyun/544e6b8977b9b9109133 to your computer and use it in GitHub Desktop.
input = raw_input("even or odd? ")
while input.lower() not in ['even', 'odd']:
print "I said even or odd!"
input = raw_input("even or odd? ")
print "Good, you chose %s" % input
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment