Skip to content

Commit

Permalink
Update and rename birthdays to birthdays.py
Browse files Browse the repository at this point in the history
  • Loading branch information
cyai authored Jun 26, 2022
1 parent 4935345 commit fc0e6ca
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions birthdays → birthdays.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
birthdays = {'Alice': 'Apr 1', 'Bob': 'Dec 12', 'Carol': 'Mar 4'}
while True:
print('Enter a name: (blank to quit)')
name = input()
if name == '':
name = input()
if name == '':
break
if name in birthdays:
if name in birthdays:
print(birthdays[name] + ' is the birthday of ' + name)
else:
else:
print('I do not have birthday information for ' + name)
print('What is their birthday?')
bday = input()
birthdays[name] = bday
print('Birthday database updated.')
print('What is their birthday?')
bday = input()
birthdays[name] = bday
print('Birthday database updated.')

0 comments on commit fc0e6ca

Please sign in to comment.