Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 421 Bytes

notes.md

File metadata and controls

26 lines (18 loc) · 421 Bytes

Day 26 - Solution 2: Good Morning Sir

Solution code

import time
hour = int(time.strftime('%H'))

if hour >=0 and hour<12:
    print('Good Morning Sir')
elif hour>=12 and hour<17:
    print('Good Afternoon Sir')
else:
    print('Good Evening Sir')
Good Morning Sir

References