Back to tasks
Time of day
BeginnerPython for kids 路 Lesson 23: elif - many options
Problem Statement
Read an hour (0..23). Print NOC (night) before 6, RANO (morning) before 12, DZIEN (day) before 18, and later WIECZOR (evening).
Input Format
One whole number - the hour (0 <= hour <= 23).
Output Format
NOC, RANO, DZIEN or WIECZOR.
Examples
Example 1
Input
3
Output
NOC
Example 2
Input
12
Output
DZIEN
Example 3
Input
21
Output
WIECZOR