Question: 1. Write a Python statement that subtracts the variable dewn_ pavment from the variable total and assigns the result to the variable due. 2. Write
1. Write a Python statement that subtracts the variable dewn_ pavment from the variable total and assigns the result to the variable due. 2. Write a Python statement that multiplies the variable subtotal by 0.15 and assigns the result to the variable total, 3. Miles-per-Gallon A car's miles-per-gallon (MPG) can be calculated with the following formula: MPG =Miles driven / Gallons of gas used. Write a program that asks the user for the number of miles driven and the gallons of gas used. It should calculate the car's MPG and display the result
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
