Question: def create_state_capital_dictionary(): Create a dictionary that maps a state name to its capital. This dictionary should contain at least the following three states and capitals:

def create_state_capital_dictionary(): """Create a dictionary that maps a state name to its capital.

This dictionary should contain at least the following three states and capitals: The capital of California is Sacramento. The capital of Washington is Olympia. The capital of Oregon is Salem.

>>> capitals = create_state_capital_dictionary()

>>> capitals['California'] 'Sacramento'

>>> capitals['Washington'] 'Olympia'

>>> capitals['Oregon'] 'Salem' """

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!