Python Forum

Full Version: Could someone please help walk me through my home work
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Write a program that will convert litres per 100km (l/100km) to mpg. The output should show conversions using iteration from a user defined start and end figure using a step value of 1 litre per 100km.
Please use these conversion figures that are accurate to 2 decimal places:
i. 1 mile = 1.61 km
ii. 1 imperial gallon = 4.55 litres


https://ibb.co/gmz9FH

that is a link to a screenshot of my home work to get a full explanation. thanks to anyone willing to help me
Here we help people with their Python challenges or questions, not write code or do homeworks.

You are welcome to post your coding attempt to solve this problem (in Python code tags) and full error traceback (in error tags) if you get an error. If the result you get is not as desired, post expected and actual results too. Then we can point you in the right direction.
No Code, no help.
This board is not here to solve simple math equations.
Quote:Could someone please help walk me through my home work
Sure. Step 1, is to start.