In Python One lap around a standard high-school running track is exactly 0.25 miles. Write the function def miles_to_laps() that takes a number of miles as an argument and returns the number of laps....


In Python


One lap around a standard high-school running track is exactly 0.25 miles. Write the function def miles_to_laps() that takes a number of miles as an argument and returns the number of laps. Complete the program to output the number of laps.


Output each floating-point value with two digits after the decimal point.


Ex: If the input is:


Enter the number of miles: 1.5


the output is:


1.50 miles is 6.00 laps


Ex: If the input is:


Enter the number of miles: 2.2


the output is:


2.20 miles is 8.80 laps


Your program must define and call the following function:
def miles_to_laps(user_miles)



Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here