► Python Program to Convert Kelvin to Fahrenheit


Steps followed:
1. Take temperature input from user in Kelvin
2. use below formula to convert Kelvin To Fahrenheit 
   Temp in Fahrenheit = (Temp in Kelvin - 273.15) * 9/5 + 32
3. print the result


Program

#Python Program to Convert Kelvin to Fahrenheit

# Take temperature input from user in Kelvin
temp_in_kelvin = float(input("provide temperature input in Kelvin: "))

# convert Kelvin To Fahrenheit
temp_in_fahrenheit = (temp_in_kelvin - 273.15) * 9/5 + 32

#printing the result
print('%0.2f degree kelvin is equal to %0.2f degree fahrenheit' %(temp_in_kelvin,temp_in_fahrenheit))


Output

provide temperature input in Kelvin: 50
50.00 degree kelvin is equal to -369.67 degree fahrenheit

 

provide temperature input in Kelvin: 400
400.00 degree kelvin is equal to 260.33 degree fahrenheit

 

provide temperature input in Kelvin: 250
250.00 degree kelvin is equal to -9.67 degree fahrenheit





Also Read: