Python Program to convert temperature from Celsius to Fahrenheit

In this program, we will learn how to convert temperature from Celsius to Fahrenheit using the Python Language.

We will be using a formula for it.

Formula:-

C = (5/9) * (F – 32)
Where,
C is the temperature in Celsius
And F is the temperature in Fahrenheit

Python Programming Code to convert temperature from Celsius to Fahrenheit

Code:-

c = float(input("Enter the temperature in Celsius: "))
f = (c*1.8)+32
print("Temperature in Fahrenheit is:",f)

Output:-

Enter the temperature in Celsius: 32
Temperature in Fahrenheit is: 89.6

You can learn about many other Python Programs Here.

Best Books for learning Python with Data Structure, Algorithms, Machine learning and Data Science.

The following two tabs change content below.
Amit Rawat

Amit Rawat

Founder and Developer at SpiderLabWeb
I love to work on new projects and also work on my ideas. My main field of interest is Web Development.

You may also like...