Advertisement
Atyeo

Not Equal Fixed

Nov 24th, 2012
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.31 KB | None | 0 0
  1. while True:
  2.     selection = int(raw_input("Please select option 1 or 2 ->> "))
  3.  
  4.     if selection not in [1, 2]:
  5.         print "Please select either option 1 or 2"
  6.     elif selection == 1:
  7.         print "You have selected option 1"
  8.         break
  9.     else:
  10.         print "You have selected option 2"
  11.         break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement