Based on the setting of first day of the week, the calendar first weekday can be set. Week day number starts from 0 as Monday , 1 as Tuesday and ends at 6 as Sunday.
import calendar
x=calendar.HTMLCalendar()
x.setfirstweekday(4) # first week day is Friday
x.formatyearpage(theyear=2020,width=2)
Adding CSS
You can see in above code we already have a link to a CSS file. This line is included inside the HEAD tag of our code.
Passionate about coding and teaching, I publish practical tutorials on PHP, Python,
JavaScript, SQL, and web development. My goal is to make learning simple, engaging, and
project‑oriented with real examples and source code.