Question: Define a function convert_distance that consumes a number (representing distance in kilometers) and returns that number converted to meters by applying the following formula: meters

Define a function convert_distance that consumes a number (representing distance in kilometers) and returns that number converted to meters by applying the following formula: meters = kilometers * 1000 Then use this function to convert each element of the given list and print the result. Note: Your function will be unit tested against multiple arguments. It is not enough to get the right output for your own test cases, you will need to be able to handle any kind of number. Note: You are not allowed to use list indexing. Note: You may not embed the answer or any calculated values directly in your code. Note: You must not modify the original, given list
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
