datetime — Basic date and time types — Python 3.10.2 ...
https://docs.python.org/3/library/datetime.htmldate.weekday ¶ Return the day of the week as an integer, where Monday is 0 and Sunday is 6. For example, date(2002, 12, 4).weekday() == 2, a Wednesday. See also isoweekday(). date.isoweekday ¶ Return the day of the week as an integer, where Monday is 1 and Sunday is 7. For example, date(2002, 12, 4).isoweekday() == 3, a Wednesday.
weekday function in Python | Pythontic.com
pythontic.com › datetime › dateThe weekday () function of date class in datetime module, returns an integer corresponding to the day of the week. Here is the mapping of integer values to the days of the week. Example: # import Python's datetime module import datetime # weekdays as a tuple weekDays = ("Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday")