Welcome to the Treehouse Community
Looking to learn something new?
Nicolae Laurentiu1,538 Points
What do I do wrong on this challenge?
I get "Bummer: Try again!" without no other response. What do I do wrong?
class RaceCar: laps = 0 def __init__(self,color,fuel_remaining,**kwargs): self.color = color self.fuel_remaining = fuel_remaining for key, value in kwargs.items(): setattr(self, key, value) def run_lap(self,length): self.fuel_remaining = length * 0.125 laps += 1
A minor change
self.fuel_remaining = length * 0.125 laps += 1
self.fuel_remaining -= length * 0.125 self.laps += 1