Question: Please write a code in Python that satisfies the following: Thank you! Write a program that asks the user for the hour of the day
Write a program that asks the user for the hour of the day (in 24 hour time), and prints o "Good Morning" if it is strictly before 12, o "Good Afternoon" if it is 12 or greater, but strictly before 17, and o "Good Evening" otherwise. A sample run: Enter hour (in 24 hour time) 11 Good Morning Another sample run: Enter hour (in 24 hour time): 20 Good Evening And another run: Enter hour (in 24 hour time): 15 Good Afternoon
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
