Created
March 20, 2017 21:33
-
-
Save katyhuff/980124115711a843da8f8f882bd68aec to your computer and use it in GitHub Desktop.
for @jbae11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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