mirror of
https://github.com/devenperez/leetcode.git
synced 2026-06-13 14:57:08 +00:00
4 lines
182 B
Python
4 lines
182 B
Python
class Solution:
|
|
def convertTemperature(self, celsius: float) -> List[float]:
|
|
return [celsius + 273.15, # Kelvin
|
|
celsius * 1.80 + 32.00] # Fahrenheit |