Inactive Tutor answered 02/02/23
birthday_dict = {
"person 1": "01/01/2000",
"person 2": "02/14/1995",
"person 3": "03/12/1990",
"person 4": "04/23/1985"
}
for name in birthday_dict:
print(name + "'s birthday is on " + birthday_dict[name])
Bryce H.
asked 02/02/23In python:
Use any names and birthdays you want to create a birthday dictionary that has four entries. The name is the key and the value is the birth date. Print each birth date by using the key to access each entry.
Inactive Tutor answered 02/02/23
birthday_dict = {
"person 1": "01/01/2000",
"person 2": "02/14/1995",
"person 3": "03/12/1990",
"person 4": "04/23/1985"
}
for name in birthday_dict:
print(name + "'s birthday is on " + birthday_dict[name])
Get a free answer to a quick problem.
Most questions answered within 4 hours.
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.