Workout#3: Run Timing

Sep 16, 2021

For this exercise, then, we’ll assume that you run 10 km each day as part of your exercise regime. You want to know how long, on average, that run takes.

Write a function (run_timing) that asks how long it took for you to run 10 km. The function continues to ask how long (in minutes) it took for additional runs, until the user presses Enter. At that point, the function exits — but only after calculating and displaying the average time that the 10 km runs took.

TRY IT YOURSELF

ANSWER

https://colab.research.google.com/drive/1e51NjPuqDnSr0-cMoLKAtGfMEmVAPK2Q?usp=sharing

--

--

Abish Pius
Abish Pius

Written by Abish Pius

Data Science Professional, Python Enthusiast, turned LLM Engineer

No responses yet