Question: 1. Assume that the variable nameDictionary refers to the dictionary: {'Joe' : 'Police' : 'Sean' : 'Fireman' : 'Ryan' : 'Welder'} The expression print(list(nameDictionary.keys())) displays?

1. Assume that the variable nameDictionary refers to the dictionary:

{'Joe' : 'Police' : 'Sean' : 'Fireman' : 'Ryan' : 'Welder'}

The expression print(list(nameDictionary.keys())) displays?

The expression print(list(nameDictionary.values())) displays?

2. Write two lines of code to add two more names to the nameDictionary: Sarah, Nurse and Joan, Scientist

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!