def driving_cost(driven_miles, miles_per_gallon, dollars_per_gallon):
dm = miles_per_gallon / dollars_per_gallon
gc = driven_miles / dm
return gc
gas_efficiency = float(input())
gas_cost = float(input())
print("{:.2f}".format(driving_cost(20, gas_efficiency, gas_cost)))
print("{:.2f}".format(driving_cost(75, gas_efficiency, gas_cost)))
print("{:.2f}".format(driving_cost(500, gas_efficiency, gas_cost)))
Where would I place end = ' ' to get them to print on the same line?