Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Not Equal Fixed

By: Atyeo on Nov 24th, 2012  |  syntax: Python  |  size: 0.31 KB  |  views: 34  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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