Question: i need my code to print in the same line but its printing in three different lines. please help TIPY Load dera temptate... 1 def

 i need my code to print in the same line but
its printing in three different lines. please help TIPY Load dera temptate...
i need my code to print in the same line but its printing in three different lines. please help

TIPY Load dera temptate... 1 def driving_costdriven_miles, miles per gallon, dollars per gallon): return (driven_miles / miles_per_gallon). dollars_per_gallon 5 if name 'main ': miles_per_gallon - float(input) dollars_per_gallon - float(input) print( 0.24 % driving cost(10, miles_per_gallon, dollars per gallon)) print("x0.2 % driving.cost(50, miles per gallon, dollars_per.gallon)) print("x0.2 % driving cost(400, miles_per_gallon, dollars, per gallon) Develop mode Submit mode Run your program as often as you'd like, before submitting for grading. Below, type any needed input values in the first box, then click Run program and observe the program's output in the second box Enter program input (optional) 20.0 3.1599 main.py Input (from above) - Run program - Output (shown below) Program output displayed here 1.58 Develop mode Submit mode Run your program as often as you'd like, before submitting for grading. Below, type any n input values in the first box, then click Run program and observe the program's output in second box Enter program input (optional) 20.0 3.1599 Run program Input (from above) main.py (Your program) - Output (shown below) Program output displayed here 1.58 7.90 63.20 Feedback

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!