Topic: Dictionaries
Related Reading: Chapter 12
Due:
Please make sure you adhere to the policies on academic integrity.
Exericse 12.3
In class, we demonstrated use of the method dict.setdefault method. Demonstrate your understanding by giving a snippet of code with logic that is equivalent to the following:
val = capital.setdefault('CA','Springfield')
presuming that capital is a dictionary. You are not allowed to use the setdefault method in your answer.
Exericse 12.4
Exercise 12.6