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
Enter the number of miles: 2.2
2.20 miles is 8.80 laps
Your program must define and call the following function:def miles_to_laps(user_miles)
# Define your function here
if __name__ == '__main__': # Type your code here. Your code must call the function. # Notice the indentation level
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here