Python TextCalendar Module : weekheader() method
weekheader() method
The weekheader() method is used to get a header containing abbreviated weekday names.
Syntax:
weekheader(n)
Parameters:
Name | Description | Required / Optional |
Type |
---|---|---|---|
n | Specifies the width in characters for one weekday. | Required | Number |
Example of weekheader() method
import calendar
print(calendar.weekheader(3))
Output:
Tue Wed Thu Fri Sat Sun Mon
Previous: weekday()
Next: monthrange()
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/weekheader.php
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics