mirror of
https://github.com/devenperez/leetcode.git
synced 2026-06-15 01:07:07 +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 |