Convert Celsius to Kelvin using Python

Calculate by formula

def celsiusToKelvin(celsius):
    return celsius + 273.15


celsius = 25.5
kelvin = celsiusToKelvin(celsius)

print(kelvin)

Leave a Comment

Cancel reply

Your email address will not be published.