Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Your program should ask for a racers name, followed by their total score for the season. You should output this list on two separate lines.
Your program should ask for a racers name, followed by their total score for the season. You should output this list on two separate lines. The first line will contain the names of the racers separated by commas and the second line will list their score. These should be listed in descending order based on the amount of points each racer has.
This file should be named RaceCar.txt
Note: Your program should handle all types of inputs without crashing.
Example:
Input | Output | |
Smith | Vespa, Duncan, Smith, Szudy, Rogers | |
24 | 36,32,24,20,19 | |
Rogers | ||
19 | ||
Vespa | ||
36 | ||
Duncan | ||
32 | ||
Szudy | ||
20 |
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Here is a Python program that meets the requirements python def getinput name inputEnter the racers ...
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started