Skip to main content

Module Calendar in Python

 







import calendar


print("------Calendar---------")
y = int(input("Enter the year: "))
m = int(input("Enter the month "))
print ("----Calender of : ")
calendar.prmonth(y, m, 2, 1)


# y = int(input("Enter the year for check leap year: "))
# s=calendar.isleap(y)
# s=calendar.weekday(2021, 6, 23)   # it will return number of days ( means mondat is a 0 )


# s = calendar.monthcalendar(2022,2)


# print(s)


Comments