In Python
Write a function so that the main program below can be replaced by the simpler code that calls function mph_and_minutes_to_miles(). Original main program:
Sample output with inputs: 70.0 100.0
Miles: 116.666667
''' Your solution goes here '''
miles_per_hour = float(input())minutes_traveled = float(input())
print('Miles: {:f}'.format(mph_and_minutes_to_miles(miles_per_hour, minutes_traveled)))
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here