In this program, you’ll learn how to Convert Celsius To Fahrenheit in Python.
To properly understand this how to get Celsius To Fahrenheit, you should have the knowledge of following Python programming topics:
- Python Input, Output and Import
- Python Variables and Data Types
- Python Operators
NOTE:celsius * 1.8 = fahrenheit - 32
Program to Convert Celsius to Fahrenheit
# change this value for a different result
celsius = 37.5
# calculate fahrenheit
fahrenheit = (celsius * 1.8) + 32
print(‘%0.1f degree Celsius is equal to %0.1f degree Fahrenheit’ %(celsius,fahrenheit))
Output:
37.5 degree Celsius is equal to 99.5 degree Fahrenheit
The above code can be converted into Faherenite to Celsius using the following formula
celsius = (fahrenheit - 32) / 1.8

Related Programs
- Python Program to find the area of Triangle.
- Python Program to Solve Quadratic Equation.
- Python Program to Generate a Random Number.
- Python Program to Generate a Random alphanumeric String.
- Python Program to find the Square Roots
- Python Program to Shuffle Deck of Cards
- Python program convert decimal number to binary number using recursion
- Python Program to Find Factorial of a Number Using Recursion
- Python Program to Check if a Number is Positive, Negative or 0
- Python Program to Display Fibonacci Sequence Using Recursion
Ask your questions and clarify your/other doubts on by commenting. Python Documentation