Decode School

Decode School - The School for Problem Solvers

Welcome to my blog. Subscribe and get my latest blog post in your inbox.

Fahrenheit to Celsius in Python

Python program to get Fahrenheit F from user and find celsius C

Sample Input 1:


Sample Output 1:


Program or Solution

f=float(input("Enter Fahrenhiet:"))
print("Celsius: %.2f" % c)


Program Explanation

Get Fahrenheit f as input (using input() method) Calculate Celsius c using Formula c=(f-32)*0.5556 print Celcius c (using print() method).