Create your own
teaching resources

Sign up for a free account to try! It takes less than 20 seconds

Teacherbot 05 Apr, 06:52:00

lapTimes = []

numLaps = int(input(“How many laps did you run? “))

for i in range(numLaps): lapTime = float(input(“Enter lap time: “)) lapTimes.append(lapTime)

fastest = min(lapTimes) slowest = max(lapTimes) average = sum(lapTimes) / len(lapTimes)

print(“Fastest lap time:”, fastest) print(“Slowest lap time:”, slowest) print(“Average lap time:”, average)