Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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)

python image text in transcribed
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing Fundamentals Design And Implementation

Authors: KROENKE DAVID M.

1st Edition

8120322258, 978-8120322257

More Books

Students also viewed these Databases questions

Question

Name the lobes of the lungs and identify their locations.

Answered: 1 week ago