Practical - 57 - Write a Python program to take temperature in Fahrenheit as input and convert it to Celsius.
Ans:
F=float(input("Enter the temperature in Fahrenheit: "))
C=5*(F-32)/9
print("Temperature in Celsius=", C)
Output:
Enter the temperature in Fahrenheit: 98.6
Temperature in Celsius= 37.0
No comments:
Post a Comment