-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmenu.py
More file actions
26 lines (24 loc) · 775 Bytes
/
menu.py
File metadata and controls
26 lines (24 loc) · 775 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import os
while True:
print("1. this is for choice 1")
print("2. this is for choice 2")
print("3. this is for choice 3")
print("4. this is for choice 4")
print("5. this is for choice 5")
print("q. Quit")
print("="*25)
choice = input("Enter a choice: ")
if choice == "q":
break
if choice == "1":
print("I'm doing stuff for choice 1")
any_key = input("Press enter to continue...")
os.system("clear")
elif choice == "2":
print("I'm doing stuff for choice 2")
any_key = input("Press enter to continue...")
os.system("clear")
elif choice == "3":
print("I'm doing stuff for choice 3")
any_key = input("Press enter to continue...")
os.system("clear")