Convert Fahrenheit to Celsius using Python

You may use the following Python script to convert Fahrenheit to Celsius. Get temperature in Fahrenheit from user. Convert Fahrenheit to Celsius. Print the result.

Convert Fahrenheit to Celsius using Python
Photo by Jarosław Kwoczała / Unsplash

You may use the following Python script to convert Fahrenheit to Celsius.

# Get temperature in Fahrenheit from user
fahrenheit = float(input("Enter temperature in Fahrenheit: "))

# Convert Fahrenheit to Celsius
celsius = round((fahrenheit - 32) * 5/9, 1)

# Print the result
print("Temperature in Celsius: {:.1f}°C".format(celsius))