File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change 1
1
'''
2
2
@Author: shubham shirke
3
- @Date: 2021-02-13 12 :30:30
3
+ @Date: 2023-06-12 10 :30:30
4
4
@Last Modified by: shubham shirke
5
- @Last Modified time: 2021-02-11 2:50 :30
6
- @Title : To add a contact in address book.
5
+ @Last Modified time: 2022-06-12 4:30 :30
6
+ @Title : To update existing contact in address book.
7
7
'''
8
8
from AddressBook_Service import *
9
9
@@ -14,14 +14,19 @@ def main():
14
14
print ("--Address Book System--" )
15
15
print ("-----------------------" )
16
16
print ("1.Add contact" )
17
- print ("2.Print Contact" )
18
- print ("3.Exit" )
17
+ print ("2.Update Contact" )
18
+ print ("3.Print Contact" )
19
+ print ("4.Exit" )
19
20
print ("-----------------------" )
20
21
choice = int (input ("Enter choice: " ))
21
22
if choice == 1 :
22
23
address_book .add_contact ()
23
24
24
25
elif choice == 2 :
26
+ first_name = input ("Enter first name to update: " )
27
+ address_book .update_contact (first_name )
28
+
29
+ elif choice == 3 :
25
30
address_book .display_contact ()
26
31
27
32
elif choice == 3 :
You can’t perform that action at this time.
0 commit comments