-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
43 lines (25 loc) · 2.2 KB
/
main.py
File metadata and controls
43 lines (25 loc) · 2.2 KB
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
33
34
35
36
37
38
39
40
41
42
43
from tracker import ProgressTracker
def main():
tracker = ProgressTracker()
while True:
print("\n--- Python Progress Tracker ---")
print("1. View Progress")
print("2. Add New Topic")
print("3. Mark Topic as Completed")
print("4. Exit")
choice = input("Enter your choice: ")
if choice == '1':
tracker.view_progress()
elif choice == '2':
topic = input("Enter topic name:")
tracker.add_topic(topic)
elif choice == '3':
topic = input("Enter topic name to mark as completed")
tracker.mark_completed(topic)
elif choice == '4':
print("Exiting tracker. Keep learning and coding!")
break
else:
print("Invalid choice. Please try again! ")
if__name_ == "__main__":
main()