Kodewick
Start learning →
Starter←→0 / 100

Morning or afternoon

#002StarterConditions2 min

The front-desk robot greets people. Now hour is 15: before 12 it says Good morning, otherwise Good afternoon. Write the whole if / else.

Should show
Good afternoon
main.py
hour = 15

# your code here: before 12 print("Good morning"), otherwise print("Good afternoon")
Ctrl + Enter runs too
Result

Run tries the examples. When they look right, Submit.