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.


Software Engineer | Ethical Hacker & Cybersecurity...

Md Obydullah is a software engineer and full stack developer specialist at Laravel, Django, Vue.js, Node.js, Android, Linux Server, and Ethichal Hacking.