MCPcopy Create free account
hub / github.com/ActiveState/code / mainmenu

Function mainmenu

recipes/Python/496778_binaryconverter10/recipe-496778.py:76–95  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

74 raw_input()
75
76def mainmenu():
77 while True:
78 os.system('cls')
79 menu = """What du you want to do?
80
811) Convert digital to binary
822) Convert binary to digital
833) Credits
844) Exit
85
86pick choice [1-4] : """
87 choice = raw_input(menu)
88 if choice == "1":
89 digitalToBinary()
90 if choice == "2":
91 binaryToDigital()
92 if choice == "3":
93 credit()
94 if choice == "4":
95 sys(exit)
96mainmenu()

Callers 3

binaryToDigitalFunction · 0.85
digitalToBinaryFunction · 0.85
recipe-496778.pyFile · 0.85

Calls 3

digitalToBinaryFunction · 0.85
binaryToDigitalFunction · 0.85
creditFunction · 0.85

Tested by

no test coverage detected