Jan-27-2018, 12:15 AM
class Car(object): condition = ["0","0"] def __init__(self, color): self.color = color def drive(self): clone = self.condition[:] clone[0] = '1' self.condition = clonetry clone/make a copy of self.condition, make changes on that clone and ressign instead of mutating it.