76.0k views
1 vote
One lap around a standard high-school running track is exactly 0.25 miles. Write the function miles_to_laps() that takes a number of miles as an argum

User Iverson
by
4.4k points

1 Answer

12 votes

Answer:

Explanation:

The following code is written in Python. It is a function that takes in the number of miles as an argument and returns the number of laps that those miles represents.

def miles_to_laps(miles):

laps = miles / 0.25

return laps

User Zythyr
by
4.7k points