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


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
Get step-by-step solutions from verified subject matter experts
