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.
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))