Question: Pleazzze get it done soon Here is the code that requires editing: def add_win(name, names_list, wins_list): input: name - a string representing the name of

Pleazzze get it done soon

Pleazzze get it done soon Here is the code that requires editing:def add_win(name, names_list, wins_list): input: name - a string representing the name

Here is the code that requires editing: def add_win(name, names_list, wins_list): input: name - a string representing the name of the winner names_list a list of the names of all participants wins_list a list of the number of wins of all participants If name is a contestant appearing in names_list, increase their number of wins in wins_list by 1, and return True If name is not a contestant appearing in names_list, return False found = False index=0 while(index max_wins): max_wins = wins_list[index] winner = names_list[index] #we have a tie at the top of the winners list elif(wins_list[index] == max_wins): winner = "TIE" return winner

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!