Skip to content

Instantly share code, notes, and snippets.

@katyhuff
Created March 20, 2017 21:33
Show Gist options
  • Save katyhuff/980124115711a843da8f8f882bd68aec to your computer and use it in GitHub Desktop.
Save katyhuff/980124115711a843da8f8f882bd68aec to your computer and use it in GitHub Desktop.
for @jbae11
gov_ids = [('France', 1),
('Germ', 2),
('Switz', 3),
('Sweden', 4),
('Finland', 5),
('Hungary', 6),
('Norway', 7),
('Spain', 8)]
import collections
gov_dict = collections.OrderedDict(gov_ids)
print(gov_dict)
power = [range(1,601),
range(2,602),
range(3,603),
range(4,604),
range(5,605),
range(6,606),
range(7,607),
range(8,608)]
tester_zip = zip(gov_dict.keys(), power)
pow_dict = dict(tester_zip)
print(pow_dict)
pow_dict['France'][7]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment