Table of Contents
Python program to convert Celsius to Fahrenheit and vice versa
Celsius : It is a scale to measure temperature named after Anders Celsius and its symbol is °C.
Fahrenheit : It is a scale to measure temperature. It is proposed in 1724 by the physicist Daniel Gabriel Fahrenheit
Following are the simple python programs for conversion.

Python program to convert Celsius to Fahrenheit
c = float(input("Enter temperature in Celsius : "))
f = (c * 9/5) + 32
print("%.2f Celsius is equal to %.2f Fahrenheit" %(c, f))
Output :
Enter temperature in Celsius : 5
5.00 Celsius is equal to 41.00 Fahrenheit
Enter temperature in Celsius : 37
37.00 Celsius is equal to 98.60 Fahrenheit
Python program to convert Fahrenheit to Celsius
f = float(input("Enter temperature in Fahrenheit : "))
c = (f - 32) * 5/9
print("%.2f Fahrenheit is equal to %.2f Celsius" %(f, c))
Output :
Enter temperature in Fahrenheit : 41
41.00 Fahrenheit is equal to 5.00 Celsius
Enter temperature in Fahrenheit : 98.6
98.60 Fahrenheit is equal to 37.00 Celsius
We are aiming to explain all concepts of python in easiest terms as possible.

ITVoyagers
Author
PRACTICALS/PRACTICE PROGRAM IN PYTHON
CHECKOUT OTHER RELATED TOPICS
CHECKOUT OTHER QUIZZES
Quizzes on File Handling |
Easy quiz on file handling in python part 1 |
Easy quiz on file handling in python part 2 |
Quizzes on Exception Handling |
Easy quiz on Exception Handling in python part 1 |
Easy Quiz on Exception Handling in python part 2 |
Quizzes on Regular Expressions |
Easy Quiz on Regular Expression in python part 1 |
Quizzes on Python concepts coming soon… |
Python basic quiz |
New and easy python quiz basic part 1 |
New and easy python quiz (basic) part 2 |
New and easy python quiz (basic) part 3 |
Python practice quiz set |
Best Practice Quiz Set on Python Programming Part 1 |
Best Practice Quiz Set on Python Programming Part 2 |
Best Practice Quiz Set on Python Programming Part 3 |
Best Practice Quiz Set on Python Programming Part 4 |
Best Practice Quiz Set on Python Programming Part 5 |