Skip to content

Python code snippet – How to make sun as first day in calendar ?

import calendar

# to set the first weekday to SUNDAY.
calendar.setfirstweekday(calendar.SUNDAY)
print(calendar.month(2020, 10 ))
See also  How to get the most common number in Python?
, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.