-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
37 lines (26 loc) · 741 Bytes
/
Copy pathmain.py
File metadata and controls
37 lines (26 loc) · 741 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
33
34
35
36
37
from notes_manager import NotesManager
manager = NotesManager()
while True:
print("\n📝 NOTES MANAGER")
print("1. Add Note")
print("2. View Notes")
print("3. Search Notes")
print("4. Update Note")
print("5. Delete Note")
print("6. Exit")
choice = input("Enter your choice: ").strip()
if choice == "1":
manager.add_note()
elif choice == "2":
manager.view_notes()
elif choice == "3":
manager.search_notes()
elif choice == "4":
manager.update_note()
elif choice == "5":
manager.delete_note()
elif choice == "6":
print("Goodbye! 👋")
break
else:
print("Invalid choice!")