Question: Write a program that asks the user to enter how many toys are in the candidate list this year (as an integer). Then ask the
Write a program that asks the user to enter how many toys are in the candidate list this year (as an integer). Then ask the user to enter the names of the toys and store them in a list of strings. The next step to get from the user the total number of votes each toy received and store these values in a second list (as integers).
The program should calculate:
the total number of votes received,
the toy with the highest number of votes and what percentage of the total votes that is,
the toy with the lowest number of votes and what percentage of the total votes that is.
The program should then display the results,
Step by Step Solution
3.45 Rating (161 Votes )
There are 3 Steps involved in it
The simple Python program that accomplishes the task you described def main Get the number of toys n... View full answer
Get step-by-step solutions from verified subject matter experts
