Hi, I am having trouble with the follow code. I’m close but afew of my calculations are coming up wr

Hi, I am having trouble with the follow code. I’m close but afew of my calculations are coming up wrong. My main issue is Ican’t figure out how to do the total MPG for the entire trip. Iposted this previously but whoever answered it just copy and pastedfrom another question and the code didn’t function. Thanks inadvance for any help or thoughts. In PYTHON, Write a program that computes the fuel efficiency of a multi-legjourney. Prompt for the starting odometer reading. Get information about a series of legs. For each leg, the user enters the current odometer reading andthe amount of gas used (separate by a space). The user signals the end of the trip with a blank line. The program should print or display the miles per gallon (MPG)achieved on each leg and the total MPG for the trip. . . .

"Is this question part of your assignment? We can help"

ORDER NOW