Write a Python program to enter temperature in Fahrenheit and convert to Celsius

PROGRAM

# Python program to convert Fahrenheit to Celsius
# Input: Temperature in Fahrenheit
fahrenheit = float(input(“Enter temperature in Fahrenheit: “))
# Convert to Celsius
celsius = (fahrenheit – 32) * 5/9
# Output the result
print(“Temperature in Celsius:”, celsius)

OUTPUT

TRY THE ABOVE CODE

Leave a Reply

Your email address will not be published. Required fields are marked *

sign up!

We’ll send you the hottest deals straight to your inbox so you’re always in on the best-kept software secrets.