Question: userHour= int(input('Enter hour (in 24 hour time): ')) if userHour = 12: print('Good Afternoon') elif userHour *Please check what's wrong with my code Write a

userHour= int(input('Enter hour (in 24 hour time): '))
if userHour = 12: print('Good Afternoon') elif userHour
*Please check what's wrong with my code
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
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
