Python Program to Convert Temperature Degrees Celsius to Fahrenheit
# Python Program to Convert Temperature Degrees Celsius to Fahrenheit
# we are taking a number from user as input
# entered value will be converted to int from string
celsius = int(input("Enter the degree Celsius value:"))
# calculate fahrenheit
fahrenheit = (celsius * 1.8) + 32
print('%0.1f degree Celsius is equal to %0.1f degree Fahrenheit' %(celsius,fahrenheit))
Output:
Enter the degree Celsius value:40
40.0 degree Celsius is equal to 104.0 degree Fahrenheit