From 55b0a135054d450c9bb2f8effe7477c046a433fe Mon Sep 17 00:00:00 2001 From: Lukas Baumann Date: Thu, 18 Feb 2021 21:13:19 +0100 Subject: [PATCH] Create 3 - Speed Calculator.py --- 01/3 - Speed Calculator.py | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 01/3 - Speed Calculator.py diff --git a/01/3 - Speed Calculator.py b/01/3 - Speed Calculator.py new file mode 100644 index 0000000..54e8990 --- /dev/null +++ b/01/3 - Speed Calculator.py @@ -0,0 +1,4 @@ +totalDistance = uphillDistance + downhillDistance +totalTime = uphillTime + downhillTime +averageSpeed = totalDistance / totalTime +print(averageSpeed)