Python ProgrammingPython Programming

How to get weekday of specific date in Python?

import datetime

print(datetime.date(2020, 5, 15).isocalendar()[2])
Output
5