Python 11.9 (10000+ EXTENDED)
class Temperature: def (self, celsius: float): self.celsius = celsius
# Self type t = Temperature(25) print(t) python 11.9
@classmethod def from_fahrenheit(cls, fahrenheit: float) -> Self: celsius_val = (fahrenheit - 32) * 5/9 return cls(celsius_val) class Temperature: def (self, celsius: float): self
Very nice
Thank you, keep learning
m