(Solved) : Inning Programming Python Home 618 Lab Miles Track Laps Zybooks Cata One Lap Around Standa Q44042461 . . .
use python please
inning Programming in Python home > 6.18: LAB: Miles to track laps zyBooks cata One lap around a standard high-school running track is exactly 0.25 miles. Write the function miles to Japs 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, which can be achieved as follows. print(‘{:.2f}’.format(your_value)) Ex If the input is: 1.5 the output is: 6.00 Ex: If the input is 2.2 the output is: 8.80 Your program must define and call the following function: def miles_to_laps (user_miles) Load default template 1 def miles_to_laps(user_miles-): lap – float(user_miles) / 0.25 return lap 5 miles – inputol 7 print(‘{:.2f}’.format(miles_to_laps (miles) Develop mode Submit mode Run your program as often as you’d like, before submitting for grading. Below, type any needed input values in the first box, then click Run program and observe the program’s output in the second box Enter program input (optional) miles_to_Japs(1.5) Run program Input (from above) main.py (Your program) – Output (shown below) Program output displayed here Traceback (most recent call last): Pile “main.py”, line 7. in <module> print(‘: .2f)’.format(miles_to_laps (miles))) File “main.py”, line 2, in miles to laps lap – float(user miles) / 0.25 ValueError: could not convert string to float: ‘miles_to_laps (1.5) Show transcribed image text inning Programming in Python home > 6.18: LAB: Miles to track laps zyBooks cata One lap around a standard high-school running track is exactly 0.25 miles. Write the function miles to Japs 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, which can be achieved as follows. print(‘{:.2f}’.format(your_value)) Ex If the input is: 1.5 the output is: 6.00 Ex: If the input is 2.2 the output is: 8.80 Your program must define and call the following function: def miles_to_laps (user_miles)
Load default template 1 def miles_to_laps(user_miles-): lap – float(user_miles) / 0.25 return lap 5 miles – inputol 7 print(‘{:.2f}’.format(miles_to_laps (miles) Develop mode Submit mode Run your program as often as you’d like, before submitting for grading. Below, type any needed input values in the first box, then click Run program and observe the program’s output in the second box Enter program input (optional) miles_to_Japs(1.5) Run program Input (from above) main.py (Your program) – Output (shown below) Program output displayed here Traceback (most recent call last): Pile “main.py”, line 7. in print(‘: .2f)’.format(miles_to_laps (miles))) File “main.py”, line 2, in miles to laps lap – float(user miles) / 0.25 ValueError: could not convert string to float: ‘miles_to_laps (1.5)
Expert Answer
Answer to inning Programming in Python home > 6.18: LAB: Miles to track laps zyBooks cata One lap around a standard high-school ru…
OR