Day 15
Excersice 2: Good Morning Sir
Create a python program capable of greeting you with Good Morning, Good Afternoon
and Good Evening. Your program should use time module to get the current hour. Here
is a sample program and documentation link for you:
import time
str=input('Enter your name : ')
hours = int([Link]('%H'))
if(hours>=0 and hours<=11):
print("Hello ",[Link](),", Good Morning ")
elif(hours>=12 and hours<=17):
print("Hello ",[Link](),", Good Afternoon ")
else:
print("Hello ",[Link](),", Good Evening ")