Question: Write a python modular called miles2kilometers that will accept one float parameter, distance in miles, and returns a float value represents the distance in kilometers.
Write a python modular called miles2kilometers that will accept one float parameter, distance in miles, and returns a float value represents the distance in kilometers. Note: there are 0.6 miles in 1 kilometer. For example miles2kilometers( 10 ) will turn a value of 6.
Write a small main module that asks the user for input, calls the function, and displays the output from the function call.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
