Answer to Question #234379 in Python for Joel

Question #234379

If you run a 10 kilometer race in 42 minutes 42 seconds , what is your average pace ( time per mile in minutes and seconds )? What is your average speed in miles per hour


1
Expert's answer
2021-09-07T06:59:53-0400
dist = 10
t_m = 42
t_s = 42
t_m_s = t_s*60 + t_s
a_p = t_m_s/dist
a_m = int(a_p //60)
a_s = int(a_p % 60)
m_h = int(dist/(t_m_s/3600))
print(f'time per mile {a_m} minutes and {a_s} seconds')
print(f'average speed {m_h} miles per hour')

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS