Question: We have to create a code in PYTHON that will calculate counties that have a voter rate above 33% The function name is: vote_rate The
We have to create a code in PYTHON that will calculate counties that have a voter rate above 33%
The function name is: vote_rate
The parameters: pop_per_state - a dictionary with keys as county names and values as tuples with two elements where each tuple is
Example input: {'Boston': (700, 2225), 'Chicago': (4429, 6000), 'Idaho': (3411, 9000)}
In the example above, Boston had 700 votes with 2225 total people. Chicago has 4429 votes from 6000 people.
Return value: a list of the counties with a turnout greater than 33%
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
