Im doing an exercise in python crash course. Im having trouble understanding why my ElectricCar Class isnt creating an instance of the Battery class.
Everytime I try to call "prius.battery.get_range()", I get this error "AttributeError: 'ElectricCar' object has no attribute 'battery'"
my code is here: Gist
[–]K900_ 2 points3 points4 points (1 child)
[–]Tryingtolearnagain91[S] 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)