Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while True:
- selection = int(raw_input("Please select option 1 or 2 ->> "))
- if selection not in [1, 2]:
- print "Please select either option 1 or 2"
- elif selection == 1:
- print "You have selected option 1"
- break
- else:
- print "You have selected option 2"
- break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement