python_datetime_strftime_p.py:
x
 
import datetime
x = datetime.datetime.now()
print(x.strftime("%p"))