def time(): print("input in 24 hours format") a=int(input("Enter hour")) b=int(input("Enter min")) print("time", a,":",b) if a > 4 and a<11: print("Good morning") elif a>=11 and a<=17: print("good afternoon") else: print("good night") time()
solo
def time(): print("input in 24 hours format") a=int(input("Enter hour")) b=int(input("Enter min")) print("time", a,":",b) if a > 4 and a<11: print("Good morning") elif a>=11 and a<=17: print("good afternoon") else: print("good night") time()
Leave feedback in the comments!
Log in or sign up for Devpost to join the conversation.