Answers for "Get the number of days in the season in each year using calendar python"

4

how to make sun as first day in calendar python

import calendar

# to set the first weekday to SUNDAY.
calendar.setfirstweekday(calendar.SUNDAY)
print(calendar.month(2020, 10 ))
Posted by: Guest on October-02-2020
1

python calendar

import calendar
yio = int(input('Input a month'))
s = int(input('Input a year'))
print(calendar.month(s,yio))
Posted by: Guest on October-26-2020

Code answers related to "Get the number of days in the season in each year using calendar python"

Python Answers by Framework

Browse Popular Code Answers by Language