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

Next Post Previous Post
3 Comments
  • SB Tricks
    SB Tricks 19 जनवरी 2024 को 2:31 am बजे

    Very nice

    • Team HindiMadhyam
      Team HindiMadhyam 23 जनवरी 2024 को 9:16 pm बजे

      Thank you, keep learning

  • बेनामी
    बेनामी 27 अप्रैल 2025 को 6:47 pm बजे

    m

Add Comment
comment url