Welcome to the Treehouse Community
Looking to learn something new?
Shouldn't this code be working fine??
I feel like I understand the challenge. I'm just not seeing the error in my code... Please help! Thanks
class RaceCar: def __init__(self, color, fuel_remaining, **kwargs): self.color = color self.fuel_remaining = fuel_remaining self.laps = 0 for key, value in kwargs.items(): setattr(self, key, value) def run_lap(self, length): self.fuel_remaining -= length*0.125 self.laps += 1
I copy/pasted your code into the challenge and it passed all tasks