Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Building The Data Lakehouse

Authors: Bill Inmon ,Mary Levins ,Ranjeet Srivastava

1st Edition

1634629663, 978-1634629669

More Books

Students also viewed these Databases questions

Question

What steps should be taken to address any undesirable phenomena?

Answered: 1 week ago