Question: Two string and integer pairs are read from input, each pair representing a student's name and age. Create a dictionary named age _ dict containing

Two string and integer pairs are read from input, each pair representing a student's name and age. Create a dictionary named age_dict containing the following key-value pairs:
Key person1 with the value age_value1
Key person2 with the value age_value2
Click here for example
Ex: If the input is:
Meg
61
Cam
41
then the output is:
Meg: 61
Cam: 41

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!