Python TextCalendar Module: firstweekday() method
firstweekday() method
The firstweekday() method is used to get the current setting for the weekday to start each week.
Syntax:
firstweekday()
Example of firstweekday() method
import calendar
calendar.setfirstweekday(1)
print(calendar.firstweekday())
Output
1
Previous: setfirstweekday()
Next: isleap()
Test your Python skills with w3resource's quiz
It will be nice if you may share this link in any developer community or anywhere else, from where other developers may find this content. Thanks.
https://w3resource.com/python/module/calendar/firstweekday.php
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics