I can safely assume you want to know how to create a dictionary, and how to iterate through it.
To create a dictionary:
States = {'Alabama': '.05', 'Iowa': '0.04'}
To loop through it:
for key in States:
if key == stateName:
#States[key] will return the value associated with the key, ex .05 for Alabama
Hope this helps
1
solved Arrays in Python [closed]