Pseudocode to Python

Translate this pseudocode into working Python:

temperature ← INPUT
IF temperature > 30 THEN
    OUTPUT "Hot"
ELSE IF temperature > 15 THEN
    OUTPUT "Mild"
ELSE
    OUTPUT "Cold"
ENDIF
main.py
Loading editor…

Console

Run your code to see output here.