Question: Create a dictionary named person _ dict containing key - value pairs 'first _ name': 'Ari', 'last _ name': 'Lane', and 'license': ' PQR 1

Create a dictionary named person_dict containing key-value pairs 'first_name': 'Ari', 'last_name': 'Lane', and 'license': 'PQR123'.
Read strings new_key and new_value from input.
Add new_key and new_value as a new key-value pair to person_dict with new_key as the key and new_value as the value.

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!