Question: In python Work Area Results Settings X - 00000-51132 Instructions You're a swimmer, and you want to compare all of your race times to find

 In python Work Area Results Settings X - 00000-51132 Instructions You'rea swimmer, and you want to compare all of your race timesto find the fastest one. Write a program that continuously takes race

In python

Work Area Results Settings X - 00000-51132 Instructions You're a swimmer, and you want to compare all of your race times to find the fastest one. Write a program that continuously takes race times as floats from standard input, until the input is "no more races," at which point it should print out the time of your fastest race. Additional Notes: Regarding your code's standard output, CodeLab will check for case errors and will check whitespace (tabs, spaces, newlines) exactly. Interactive Session ? Visible newlines Visible whitespace Display stdin Display stdout 1.54 1.403 1.302 no more races 1.302 2 max = -1 while True: race time = input("Enter race time: ") if race time == "no more races": break race_time = float(race_time) # calculate max if race time > max: max = race time 7 8 9 10 11 print("1.302 ", max) 12 Test Case Table Test Case stdin stdout Feedback X #1 1.54 1.403 1.302 no more races >> Enter race time: Enter race time: Enter race time: Enter race time: 1.302 1.54 stdout is not correct (Click here for more information) X #2 stdout is not correct 1.29 1.110 1.321 no more races >> Enter race time: Enter race time: Enter race time: Enter race time: 1.302 1.321 CodeLab Analysis: Logical Error(s) . stdout is not correct

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!