Back to tasks
Weather and clothes
BeginnerPython for kids 路 Lesson 26: An if inside an if
Problem Statement
Read a temperature and the number 1 if it's raining (0 if not). When it's more than 20 degrees: with rain print PARASOL (umbrella), without rain KOSZULKA (T-shirt). When it's 20 or less: with rain KALOSZE (wellies), without rain KURTKA (jacket).
Input Format
Two whole numbers: the temperature (-30..40) and rain (0 or 1), each on its own line.
Output Format
PARASOL, KOSZULKA, KALOSZE or KURTKA.
Examples
Example 1
Input
25 1
Output
PARASOL
Example 2
Input
25 0
Output
KOSZULKA
Example 3
Input
5 1
Output
KALOSZE