i have been working on this code
'''Calculate the cost of fuel for a road trip''' def main(): distance = float(raw_input("Enter distance in kilometres: ")) litresPer100K = float(raw_input("Enter economy (ltr/100km): ")) pricePerLitre = float(raw_input("Enter fuel price per litre ($): ")) cost = distance / 100 * litresPer100K * pricePerLitre print "Fuel cost is $%0.2f" % cost main()
now this works but i need to include how to calculate the cost of fuel for each trip.
i am unsure how to approach this
any suggestion or help would be great
.... dont no how much longer i can look at this :(