Question: Write a function birth state () that takes as input the full name of a recent U.S president (as a string) and return his birth

Write a function birth state () that takes as input the full name of a recent U.S president (as a string) and return his birth state. You should use this dictionary to store the birth state for each recent president.

{ ' Barack Hussein Obama II ' : ' Hawaii ' ,

' George Walker Bush" : ' Connecticut ' ,

' William Jefferson Clinton ' : Arkansas ' ,

' Gorge Herbert Walker Bush ' : ' Massachussetts ' ,

' Ronald Wilson Regan' : 'Illinois' ,

' James Earl Carter, Jr ' : ' Georgia ' }

>>> birth state ( ' Ronald Wilson Reagan ' )

' Illinois '

Containers and Randomness ( Python)

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!