► Python Program to Convert Kelvin to Celsius


Steps followed:
1. Take temperature input from user in Kelvin
2. use below formula to convert Kelvin To Celsius
   Temp in Celsius = Temp in Kelvin - 273.15
3. print the result


Program

#Python Program to Convert Kelvin to Celsius

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

# convert Kelvin To Celsius
temp_in_celsius = temp_in_kelvin - 273.15

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


Output

provide temperature input in Kelvin: 30
30.00 degree kelvin is equal to -243.15 degree celsius

 

provide temperature input in Kelvin: 300
300.00 degree kelvin is equal to 26.85 degree celsius

 

provide temperature input in Kelvin: 500
500.00 degree kelvin is equal to 226.85 degree celsius





Also Read: