Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fill = input("gallons to fill:")
- fill = (int(fill))
- distance = input("distance traveled (miles):")
- distance = (int(distance))
- def mileage_calc():
- mileage=(distance/fill)
- print("Miles/Gallon:", mileage)
- mileage_calc()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement