csc-python-solutions/01/3 - Speed Calculator.py

5 lines
149 B
Python
Raw Normal View History

2021-02-18 20:13:19 +00:00
totalDistance = uphillDistance + downhillDistance
totalTime = uphillTime + downhillTime
averageSpeed = totalDistance / totalTime
print(averageSpeed)