python - what went wrong with my get and set properties? -
please need help. code pycharm , keeps showing me unresolved reference 'model'. parameter 'model' value not used , getter signature should (self). please how around this. class productobject: def __init__(self, product, brand, car, model, year): self.product = product self.brand = brand self.car = car self.model = model self.year = year def set_product(self, product): self.product = product.capitalize() def get_product(self): return self.product product = property(get_product, set_product) def set_brand(self, brand): self.brand = brand.title() def get_brand(self): return self.brand brand = property(get_brand, set_brand) def set_car(self, car): self.car = car.title() def get_car(self): return self.car car = property(get_car, set_car) def set_model(self): self.model = model.title() def get_model(self, model): ...