Welcome to the Treehouse Community
Looking to learn something new?
I need help with RaceCar
I can't figure out why this isn't working. please help!
class RaceCar: def __init__(self, color, fuel_remaining, laps = 0, **kwargs): self.color = color self.fuel_remaining = fuel_remaining self.laps = laps for key, value in kwargs.items(): setattr(self, key, value) def run_lap(self, length): self.fuel_remaining -= (length * .125) self.laps += 1