PYTHON
How to write pyhton program that computes the fuel efficiency of a multi-leg journey.
1) Prompt for the starting odometer reading.
2) Get information about a series of legs.
- For each leg, the user enters the current odometer reading and the amount of gas used (separate by a space).
- The user signals the end of the trip with a blank line.
3) The program should print or display the miles per gallon (MPG) achieved on each leg and the total MPG for the trip.