Put the lesson For Loops into practice by writing a program yourself.
A heat-treatment schedule uses three temperatures in °C: 25, 100 and 660 (the melting point of aluminium).
Use a for loop to convert each one to kelvin.
temperatures_c instead of writing three separate print() calls.25 °C = 298.15 K, with 2 decimal places for kelvin.25 °C = 298.15 K 100 °C = 373.15 K 660 °C = 933.15 K
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.
temperatures_c = [25, 100, 660]for temperature in temperatures_c: print(f"{temperature} °C = {temperature + 273.15:.2f} K")