5 lines
149 B
Python
5 lines
149 B
Python
totalDistance = uphillDistance + downhillDistance
|
|
totalTime = uphillTime + downhillTime
|
|
averageSpeed = totalDistance / totalTime
|
|
print(averageSpeed)
|