csc-python-solutions/01/3 - Speed Calculator.py
2021-02-18 21:13:19 +01:00

5 lines
149 B
Python

totalDistance = uphillDistance + downhillDistance
totalTime = uphillTime + downhillTime
averageSpeed = totalDistance / totalTime
print(averageSpeed)