python datetime.weekday() code example
Example 1: get weekday from date python
# int value range: 0-6, monday-sunday
weekday = datetime.weekday()
Example 2: python datetime get weekday name
import datetime
now = datetime.datetime.now()
print(now.strftime("%A"))