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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!