Here’s a simple Python script that allows a user to track fuel efficiency (e.g., miles per gallon or kilometers per liter) over multiple entries. The script stores data locally in a CSV file so it persists across sessions.
Features:
-
Records date, distance, fuel used, and calculated efficiency.
-
Stores data in a CSV file for future reference.
-
CLI-based interaction, suitable for terminal/console use.
Notes:
-
You can switch to miles/gallons by modifying the unit names and efficiency formula (
miles / gallons). -
For web or mobile version, let me know if you want to upgrade this into a Flask app or React interface.
Share this Page your favorite way: Click any app below to share.