Skip to content

Commit fc0e6ca

Browse files
authoredJun 26, 2022
Update and rename birthdays to birthdays.py
1 parent 4935345 commit fc0e6ca

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed
 

‎birthdays renamed to ‎birthdays.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
birthdays = {'Alice': 'Apr 1', 'Bob': 'Dec 12', 'Carol': 'Mar 4'}
22
while True:
33
print('Enter a name: (blank to quit)')
4-
name = input()
5-
if name == '':
4+
name = input()
5+
if name == '':
66
break
7-
if name in birthdays:
7+
if name in birthdays:
88
print(birthdays[name] + ' is the birthday of ' + name)
9-
else:
9+
else:
1010
print('I do not have birthday information for ' + name)
11-
print('What is their birthday?')
12-
bday = input()
13-
birthdays[name] = bday
14-
print('Birthday database updated.')
11+
print('What is their birthday?')
12+
bday = input()
13+
birthdays[name] = bday
14+
print('Birthday database updated.')

0 commit comments

Comments
 (0)
Please sign in to comment.