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
Get step-by-step solutions from verified subject matter experts
