Convert Celsius to Fahrenheit using Python

Calculate by formula

def celsiusToFahrenheit(celsius):
    return celsius * 1.8 + 32


celsius = 25.5
fahrenheit = celsiusToFahrenheit(celsius)

print(fahrenheit)

Leave a Comment

Cancel reply

Your email address will not be published.