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:-
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:-
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.
Amit Rawat
Latest posts by Amit Rawat (see all)
- Python Program to Print the Fibonacci Sequence (2 ways) - April 7, 2020
- Python Program to Display or Print Prime Numbers Between a Range or an Interval - June 18, 2019
- Python Program To Print Pascal’s Triangle (2 Ways) - June 17, 2019