Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Calculating time average
- import math
- def average_time(time, kilometers):
- minutes = math.floor(time)
- seconds = (time - math.floor(time)) * 100
- total_seconds = (math.floor(time) + seconds)
- average = total_seconds / float(kilometers)
- print average_time(5.23, 5)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement