We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4935345 commit fc0e6caCopy full SHA for fc0e6ca
birthdays renamed to birthdays.py
@@ -1,14 +1,14 @@
1
birthdays = {'Alice': 'Apr 1', 'Bob': 'Dec 12', 'Carol': 'Mar 4'}
2
while True:
3
print('Enter a name: (blank to quit)')
4
- name = input()
5
- if name == '':
+name = input()
+if name == '':
6
break
7
- if name in birthdays:
+if name in birthdays:
8
print(birthdays[name] + ' is the birthday of ' + name)
9
- else:
+else:
10
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.')
+print('What is their birthday?')
+bday = input()
+birthdays[name] = bday
+print('Birthday database updated.')
0 commit comments