Python Convert Celsius To Fahrenheit

In this snippet, we will learn how to convert celsius to fahrenheit in Python.

The Example

Let's have a look at the example:

# enter value
celsius = 37.5

# calculate
fahrenheit = (celsius * 1.8) + 32
print('%0.1f degree celsius = %0.1f degree fahrenheit' %(celsius, fahrenheit))

You can also run the program in our IDE.