PY
py
1
2
3
4
5
6
7
8
9
Hour = int(input('Enter the hour in 24 hour format : '))
Minute = int(input('Enter the minute : '))
print('The time is',Hour,':',Minute)
if Hour>=12:
print('The time is',Hour,':',Minute,'PM')
print('Its Noon')
else :
print('The time is ',Hour,':',Minute,'AM')
print('Its Midnight')
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run