-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
32 lines (29 loc) · 734 Bytes
/
main.py
File metadata and controls
32 lines (29 loc) · 734 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
27
28
29
30
31
32
from completed_tasks import *
system('clear')
open_task_lists()
print(welcome_message.center(width))
action = menu_selection()
"""
Continuously prompt user to make a menu selection and process
their selected action until they choose to exit (option 6)
"""
while action != "6":
match action:
case "1":
add_task()
case "2":
edit_task()
case "3":
delete_task()
case "4":
complete_task()
case "5":
view_completed_tasks()
case _:
system('clear')
print("INVALID SELECTION (choose 1-6)\n".center(width))
action = menu_selection()
system('clear')
save_task_lists()
print(tasks_saved)
print(goodbye)