Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- quitvariable = 0
- while quitvariable != 4:
- print("*** Menu ***\n")
- print("1. Convert to binary")
- print("2. Convert to decimal")
- print("3. Binary Counting")
- print("4. Quit\n")
- user = input("What would you like to do [1, 2, 3, 4] ?")
- if user == "1":
- input1 = input("Please enter number: ")
- elif user == "2":
- print("In command 2 - convert to decimal")
- elif user == "3":
- print("In command 3 - binary counting")
- elif user == "4":
- quitvariable = 4
- print("\nGoodbye")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement