Python 3 please. 6.27 (Functions) HW: Driving cost – functions Write a function DrivingCost with input…

Python 3 please.
6.27 (Functions) HW: Driving cost – functions
Write a function DrivingCost with input parameters drivenMiles,
milesPerGallon, and dollarsPerGallon, that returns the dollar cost
to drive those miles.
Ex: If the function is called with 50 20.0 3.1599, the function
returns 7.89975.
Define that function in a program whose inputs are the car’s
miles/gallon and the gas dollars/gallon (both floats). Output the
gas cost for 10 miles, 50 miles, and 400 miles, by calling your
DrivingCost function three times.
Ex: If the input is:
20.0
3.1599

Then the output is:
1.57995
7.89975
63.198

Your program must define and call the following function:
def DrivingCost(drivenMiles, milesPerGallon, dollarsPerGallon)
Note: This is a lab from a previous chapter that now requires
the use of a function.