Advertisement
Atyeo

Not Equal

Nov 24th, 2012
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. selection = raw_input("Please select option 1 or 2 ->> ")
  2.  
  3. #check input
  4. if (selection != 1) or (selection != 2):
  5.     print "You didn't select 1 or 2"
  6. #elif selection == 2:
  7. #    print "You selected 1"
  8. else:
  9.     print "You selected 1 or 2. Congrats!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement