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!")
solo
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!")
Leave feedback in the comments!
Log in or sign up for Devpost to join the conversation.