-
Notifications
You must be signed in to change notification settings - Fork 2
/
electoral_votes.py
75 lines (72 loc) · 2.86 KB
/
electoral_votes.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
"""Dict that stores the number of electoral votes of each State"""
"""Note: 'State' in this context refers to any state or region that holds electoral votes.
This includes all 50 states, the District of Columbia, and the congressional districts in Maine and Nebraska."""
electoral_votes = {'Alabama': 9,
'Alaska': 3,
'Arizona': 11,
'Arkansas': 6,
'California': 55,
'Colorado': 9,
'Connecticut': 7,
'Delaware': 3,
'District of Columbia': 3,
'Florida': 29,
'Georgia': 16,
'Hawaii': 4,
'Idaho': 4,
'Illinois': 20,
'Indiana': 11,
'Iowa': 6,
'Kansas': 6,
'Kentucky': 8,
'Louisiana': 8,
'Maine': 4,
'Maryland': 10,
'Massachusetts': 11,
'Michigan': 16,
'Minnesota': 10,
'Mississippi': 6,
'Missouri': 10,
'Montana': 3,
'Nebraska': 5,
'Nevada': 6,
'New Hampshire': 4,
'New Jersey': 14,
'New Mexico': 5,
'New York': 29,
'North Carolina': 15,
'North Dakota': 3,
'Ohio': 18,
'Oklahoma': 7,
'Oregon': 7,
'Pennsylvania': 20,
'Rhode Island': 4,
'South Carolina': 9,
'South Dakota': 3,
'Tennessee': 11,
'Texas': 38,
'Utah': 6,
'Vermont': 3,
'Virginia': 13,
'Washington': 12,
'West Virginia': 5,
'Wisconsin': 10,
'Wyoming': 3}
total_electoral_votes = sum(electoral_votes.values())
list_of_battleground_state_names = ['Florida',
'Pennsylvania',
'Wisconsin',
'North Carolina',
'Michigan',
'Ohio',
'Minnesota',
'Iowa',
'Arizona',
'Nevada',
'Texas',
'Georgia',
'Virginia',
'New Hampshire',
'Maine',
'Colorado',
'New Mexico']