This is a Python Program to take the temperature in Celsius and convert it to Fahrenheit.
The program takes the temperature in Celsius and converts it to Fahrenheit.
1. Take the value of temperature in Celsius and store it in a variable.
2. Convert it to Fahrenheit.
3. Print the final result.
4. Exit.
Here is source code of the Python Program to take the temperature in Celsius and convert it to Fahrenheit. The program output is also shown below.
celsius=int(input("Enter the temperature in celcius:")) f=(celsius*1.8)+32 print("Temperature in farenheit is:",f)
1. User must first enter the value of temperature in Celsius.
2. Using the formula of: f=(c*1.8)+32, convert Celsius to Fahrenheit.
3. Print the temperature in Fahrenheit.
Case 1: Enter the temperature in celcius:32 Temperature in Fahrenheit is: 89.6 Case 2: Enter the temperature in celcius:48 Temperature in Fahrenheit is: 118.4
Sanfoundry Global Education & Learning Series – Python Programs.
To practice all Python programs, here is complete set of 150+ Python Problems and Solutions.
- Get Free Certificate of Merit in Python Programming
- Participate in Python Programming Certification Contest
- Become a Top Ranker in Python Programming
- Take Python Programming Tests
- Chapterwise Practice Tests: Chapter 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
- Chapterwise Mock Tests: Chapter 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
- Apply for Python Internship
- Buy Information Technology Books
- Buy Python Books
- Apply for Programming Internship
- Practice Programming MCQs