Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
class Car:
		gas = float(0)
		global gallons
		gallons = 0
		def __init(self, mileage):
			pass
		def fill(self, gas):
			gallons += gas
		def drive(self, gallons):
			gallons -= miles

ca = Car(10)
ca.fill(10)
ca.drive(5)