{"id":26029,"date":"2021-12-14T08:43:05","date_gmt":"2021-12-14T03:13:05","guid":{"rendered":"https:\/\/python-programs.com\/?p=26029"},"modified":"2021-12-14T08:43:05","modified_gmt":"2021-12-14T03:13:05","slug":"python-program-for-calendar-firstweekday-method-with-examples","status":"publish","type":"post","link":"https:\/\/python-programs.com\/python-program-for-calendar-firstweekday-method-with-examples\/","title":{"rendered":"Python Program for calendar firstweekday() Method with Examples"},"content":{"rendered":"

Calendar Module:<\/strong><\/p>\n

The calendar module allows you to output calendars like a program and includes extra calendar-related operations. Calendar module functions and classes make use of an idealized calendar, the current Gregorian calendar extended in both directions indefinitely.<\/p>\n

firstweekday() Method:<\/strong><\/p>\n

calendar.firstweekday(weekday) is a function in Python\u2019s calendar module for creating simple text calendars.<\/p>\n

The firstweekday() method is used to retrieve the current weekday setting to begin each week.<\/p>\n

Syntax:<\/strong><\/p>\n

firstweekday()<\/pre>\n

Parameter Values:\u00a0<\/strong>This method has no parameters.<\/p>\n

Return Value:<\/strong>\u00a0None<\/p>\n

Program for calendar firstweekday() Method with Examples in Python<\/h2>\n