Jun-08-2020, 06:27 PM
class Celsius: def __init__(self, temperature=0): self.temperature = temperatureThis is not assigning
temperature
to self.temperature
its calling the property setter method temperature which inside creates the variable
self._temperature = value