answer = raw_input("choose a, b, or c:") if answer != "a" and answer !="b" and answer !="c": raise ValueError("Question 1: Invalid Input: please enter a, b, or c") else: print "thank you"except ValueError, errorvar: print errorvar
No comments yet.
Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.