AnkitWebLogic

Convert temperature from Fahrenheit to Celsius | Python

Example 9: WAP to convert temperature from Fahrenheit to Celsius. C=(F-32)*5/9. 1

# convert temperature from Fahrenheit to Celsius | ankitweblogic.com
f=float(input("Enter temperature in Fahrenheit: "))
c=(f-32)*5/9
print("Temperature in Celsius = ",c)
Enter temperature in Fahrenheit: 98.6
Temperature in Celsius = 37.00
Advertisement