Write a program that will gather names and birthdays from a user, and populate them into a dictionary. The name should be the key in the dictionary and the birthday is the value. The program should repeatedly prompt for as many times as the user wants to add people/birthdays, until they type "stop". After user types "stop", print the dictionary.
Added by Karla P.
Close
Step 1
Use Python and store entries in a dictionary where the name is the key and the birthday is the value. Show more…
Show all steps
Your feedback will help us improve your experience
Ct Turner and 65 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
in python write a code that prints your full name and your birthday as separate strings save and run the program
Willis J.
Write a program that asks a user for their birth year encoded as two digits (like "62") and for the current year, also encoded as two digits (like "99"). The program is to correctly write out the users age in years. Year of Birth: 62 Current year: 99 Your age: 37 ----- another run of the program -------- Year of Birth: 62 Current year: 00 Your age: 38
Liam H.
Write a program that asks for the user's name and year of birth, greets the user by name, and declares the user's age in years. Users are assumed to be born between the years 1800 and 2099, and should enter the year of birth in one of the three formats 18XX, 19XX, or 20XX. A typical output should be "Hello Caroline, you are 23 years old.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
18,000,000+
Students on Numerade
Trusted by students at 8,000+ universities
Watch the video solution with this free unlock.
EMAIL
PASSWORD