Put the lesson Operators and Expressions into practice by writing a program yourself.
The lab is at 25 °C. Convert this temperature to kelvin and to Fahrenheit, then check whether it is above 300 K.
Kelvin = °C + 273.15. Fahrenheit = °C × 9 / 5 + 32.
Kelvin: 298.15, rounded to 2 decimal places with round().Fahrenheit: 77.0, rounded to 1 decimal place.300 using >.Kelvin: 298.15 Fahrenheit: 77.0 False
Write your program below and press Run. Each run is checked against the expected output.
Press Run to see what your program prints.
One possible solution. Other programs that print the same output are correct too.
temperature_c = 25kelvin = temperature_c + 273.15fahrenheit = temperature_c * 9 / 5 + 32print("Kelvin:", round(kelvin, 2))print("Fahrenheit:", round(fahrenheit, 1))print(kelvin > 300)