-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
27 lines (25 loc) · 752 Bytes
/
main.py
File metadata and controls
27 lines (25 loc) · 752 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import time
name=input("Enter your name: ")
times=time.strftime('%H:%M')
print(times)
a=int(time.strftime('%H'))
if (4<=a<12):
print('GOOD MORNING sir ','its',times)
print('I know you have no time')
print('i hope this is importent for you')
print('thanks')
elif(12>=a<17):
print('GOOD AFTERNOON sir ','its',times)
print('I know you have no time')
print('i hope this is importent for you')
print('thanks')
elif(17>=a<20):
print("GOOD EVENING sir ",'its',times)
print('I know you have no time')
print('i hope this is importent for you')
print('thanks')
else:
print('GOOD NIGHT sir ','its',times)
print('I know you have no time')
print('i hope this is importent for you')
print('thanks')