In a make task you use the skills you have learned to create a program from scratch. There is no starter code: you begin with an empty editor.
You are going to write a program called Time Reminder. It asks for the hour of the day as a number and answers with the message that fits.
print, exactly as written below, followed by an input() on the next line,
and cast the answer with int().too early to get up.Good morning.Lunch time!.Good afternoon.Tea Time.Good evening.Nearly bedtime.Good night!.Sorry, I don't recognise that.Check the conditions in the order they are listed above: an if for the
first rule, an elif for each of the rules that follow it, and an else for the
last one. Do not reorder them and do not add conditions of your own, because the
first condition that is true is the one that decides which message is printed.
Ask the question with its own print, exactly as written:
Enter a number between 0 and 23:
Your program prints that question, followed by exactly one message line, and the message’s wording has to match the list above exactly, capital letters and punctuation included. The question is part of the checked output too.
Comment your code as you go, so that it is clear what each branch is there for.
Input:
5
Output:
Enter a number between 0 and 23:
too early to get up
Input:
13
Output:
Enter a number between 0 and 23:
Lunch time!
Input:
18
Output:
Enter a number between 0 and 23:
Tea Time
Make sure that you check for the following things:
if, has as many elif branches in the middle as you
need, and ends with else.if, elif and else line.if, elif and else lines themselves are not indented.if and each elif.else.==) in a condition that checks whether
two pieces of data are the same. A single = stores data in a variable.input is wrapped in int(), or the number is compared as text.