Python - Encapsulation and Data Protection
What will be the output of this code?
class Temperature:
def __init__(self, celsius):
self._celsius = celsius
@property
def fahrenheit(self):
return (self._celsius * 9/5) + 32
t = Temperature(0)
print(t.fahrenheit)