Question: python Instructions In your main program 7. Input the names and scores of the three friends one after another (Check out the example input below)

Instructions In your main program 7. Input the names and scores of the three friends one after another (Check out the example input below) 2. Your program should store both names and scores. Store the names in the order that they were input in one fuple and the acores in another tuple. 3. Cail the compare_scores () function and print the returned name(s) of the student(s) whth the highest soore(s). Write the compare_scores (names, scores) function that expects two parameters: - a tuple with the names - a tuple with the scores corresponding to the respective name The function compares the scores and returns one or more names (from the input tuple) as a string 1. If there is one best score - return the name of the friend that achieved that score. 2. If there are two friends with equal highest scores - retum a string with both names, separated by space, in the order of input. 3. If all three friendstachieved equal scores - return a string with all three names, separated by space, in the order of input. Examples Input Rnn 10 Maria 9 cindy 7 Qutput: Ann Input Ann 10 Maria 9 Cindy 10 Output Ann Cindy
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
