(Solved) : Function Converts Miles Kilometers Km Complete Function Return Result Call Function Conve Q43937805 . . .
hello. need help with python. thanks
This function converts miles to kilometers (km). Complete the function by having it return the result, then call the function to convert 55 miles, and print “The distance in kilometers is” with the result of the function. Then calculate the round-trip in kilometers by doubling it, and print “The round-trip in kilometers is” with that number. 1 – def convert_distance (miles): 2 km = miles * 1.6 # approximately 1.6 km in 1 mile 4 print) This function sorts 2 numbers and returns them in increasing order. Complete the function call, so that the resulting numbers are displayed in order. 1 – def order_numbers (number1, number2): 2. if number2 > number1: return numberi, number2 4. else: return number2, number1 8 -= order_numbers (100, 99) print(smaller, bigger) Show transcribed image text This function converts miles to kilometers (km). Complete the function by having it return the result, then call the function to convert 55 miles, and print “The distance in kilometers is” with the result of the function. Then calculate the round-trip in kilometers by doubling it, and print “The round-trip in kilometers is” with that number. 1 – def convert_distance (miles): 2 km = miles * 1.6 # approximately 1.6 km in 1 mile 4 print) This function sorts 2 numbers and returns them in increasing order. Complete the function call, so that the resulting numbers are displayed in order. 1 – def order_numbers (number1, number2): 2. if number2 > number1: return numberi, number2 4. else: return number2, number1 8 -= order_numbers (100, 99) print(smaller, bigger)
Expert Answer
Answer to This function converts miles to kilometers (km). Complete the function by having it return the result, then call the fun…
OR