time = int(input("Enter the time of the day (only hour) for a 24 hour scale. Ex: 1:30 pm --> 13"))

if time > 5 and time < 12: print("Good morning!") elif time >= 12 and time <= 4: print("Good afternoon!") else: print("Good evening!")

Built With

Share this project:

Updates