Back to tasks
The thermometer
BeginnerPython for kids 路 Lesson 23: elif - many options
Problem Statement
Read a temperature. Print MROZ (frost) if it is below 0, CHLODNO (cool) - below 15, CIEPLO (warm) - below 25, otherwise UPAL (heat).
Input Format
One whole number - the temperature (-50 <= temperature <= 50).
Output Format
MROZ, CHLODNO, CIEPLO or UPAL.
Examples
Example 1
Input
-5
Output
MROZ
Example 2
Input
15
Output
CIEPLO
Example 3
Input
30
Output
UPAL