Thursday, 24 February 2022

How to create a calendar in python

Hello all, in this article we are going to learn how to create a calendar using python  

 

# importing calendar module

import calendar

yy = int(input("Enter year : ")) # 2021

mm = int(input("Enter month :")) # 10

# display the calendar

print(calendar.month(yy, mm))


OUTPUT

 

No comments:

Post a Comment