-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBirthday app
More file actions
25 lines (24 loc) · 789 Bytes
/
Birthday app
File metadata and controls
25 lines (24 loc) · 789 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
dict={}
while True:
print("----------Birthday App----------")
print("1.Show Birthday Date")
print("2.Add To Birthday List")
print("3.EXIT")
choice=int(input("Enter Your Choice"))
if choice==1:
if len(dict.keys())==0:
print("nothing to show")
else:
name=input("enter name to look for birthday")
birthday=dict.get(name,"No Data Found")
print(birthday)
elif choice==2:
name=input("Enter Friend's name")
date=input("Enter Birthday's date")
dict[name]=date
print("Birthday Added")
elif choice==3:
print("press enter to exit")
exit()
else:
print("Choose a valid Option")