From 75a42ec54dbf721caa659ddf02c1f46fc2cb4bef Mon Sep 17 00:00:00 2001 From: mlot Date: Fri, 6 Jun 2025 13:40:57 -0400 Subject: initial commit for archiving --- misc/birthdays.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 misc/birthdays.py (limited to 'misc/birthdays.py') diff --git a/misc/birthdays.py b/misc/birthdays.py new file mode 100644 index 0000000..8528933 --- /dev/null +++ b/misc/birthdays.py @@ -0,0 +1,20 @@ +#!Python + +#Birthday + +birthdays = {'Alice': 'Apr 1', 'Bob': 'Dec 12', 'Carol': 'Mar 4'} + +while True: + print('Enter a name (blank to quit):') + name = input() + if name == '': + break + + if name in birthdays: + print(birthdays[name] + ' is the birthday of ' + name) + else: + print('I do not have birthday information for ' + name) + print('What is their birthday?') + bday = input() + birthdays[name] = bday + print('Birthday database updated!') -- cgit