Question: Write a function named convert_length that given a length in meters calculates the corresponding length in inches, feet, yards or miles. The units are specified

Write a function named convert_length that given a length in meters calculates the corresponding length in inches, feet, yards or miles. The units are specified by the second argument to the function. \# BEGIN TESTS [ ]: N convert_length (640, "inches") ==64039.3700 [ ]: N convert_length(640, "feet") == 6403.2808 [ ]: N convert_length(640, "yards") == 6401.0936 [ ]: M convert_length (640, "miles") ==6400.0006 \# END TESTS \# END
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
