Advertisement
Guest User

Untitled

a guest
May 4th, 2015
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. quitvariable = 0
  2.  
  3. while quitvariable != 4:
  4. print("*** Menu ***\n")
  5. print("1. Convert to binary")
  6. print("2. Convert to decimal")
  7. print("3. Binary Counting")
  8. print("4. Quit\n")
  9. user = input("What would you like to do [1, 2, 3, 4] ?")
  10.  
  11. if user == "1":
  12. input1 = input("Please enter number: ")
  13.  
  14. elif user == "2":
  15. print("In command 2 - convert to decimal")
  16.  
  17. elif user == "3":
  18. print("In command 3 - binary counting")
  19.  
  20. elif user == "4":
  21. quitvariable = 4
  22. print("\nGoodbye")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement