At swimming practice, each length's time in seconds goes in a list (there's at least one). fastest_slowest(times) is written and returns (fastest, slowest). Write lap_gap(times): use it to get both, and return how many seconds slower the slowest length was.
lap_gap([62, 58, 65])→7lap_gap([60])→0def fastest_slowest(times):
return min(times), max(times)
def lap_gap(times):
fast = 0
slow = 0
# your code here: get fast and slow in one go from fastest_slowest(times)
return slow - fast
Run tries the examples. When they look right, Submit.