Question: in python please, screenshot of code helps 2. Write a function vote0 that takes as a parameter a list of names of candidates up for

 in python please, screenshot of code helps 2. Write a functionvote0 that takes as a parameter a list of names of candidates

in python please, screenshot of code helps

2. Write a function vote0 that takes as a parameter a list of names of candidates up for election and repeatedly asks the user to enter a name of one of the candidates. When the user enters the empty string, the function prints for every name on the ballot the number of votes that the candidate received. The candidates and vote totals can be printed in any order as long as all of the information is presented. If the user types a name that cannot be found in the list of candidates, the vote is recorded for the 'Unknown' candidate Capitalization shouldn't matter so that a candidate's name appearing in all uppercase, all lowercase, or in mixed case should record a vote for the associated person. When the user types a blank name, then the function should stop and report the vote totals. The following shows a sample run of the vote) function. Please note that your function must work on all valid examples, not just the ones provided below

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!