By Navonil Ganguly
x=float(input(“enter current time :”))
if x>=0 and x<=0.59 or x>=1 and x<=1.59 or x>=2 and x<=2.59 or x>=3 and x<=3.59:
print(x,”AM”)
print(“its mid night now”)
elif x>=4 and x<=4.59 or x>=5 and x<=5.59:
print(x,”AM”)
print(“its bhor now”)
elif x>=6 and x<=6.59 or x>=7 and x<=7.59 or x>=8 and x<=8.59 or x>=9 and x<=9.59 or x>=10 and x<=10.59 or x>=11 and x<=11.59:
print(x,”AM”)
print(“its morning now”)
elif x>=12 and x<=12.59 or x>=13 and x<=13.59 or x>=14 and x<=14.59:
print(x,”PM”)
print(“its noon now”)
elif x>=15 and x<=15.59 or x>=16 and x<=16.59:
print(x,”PM”)
print(“its afternoon now”)
elif x>=17 and x<=17.59 or x>=18 and x<=18.59 or x>=19 and x<=19.59:
print(x,”PM”)
print(“its evening now”)
elif x>=20 and x<=20.59 or x>=21 and x<=21.59 or x>=22 and x<=22.59 or x>=23 and x<=23.59:
print(x,”PM”)
print(“its night now”)
else:
print(“INVALID INPUT”)