Python 3 Script to Display Calendar of Given Month and Year Using Calendar Module Full Project For Beginners

Python 3 Script to Display Calendar of Given Month and Year Using Calendar Module Full Project For Beginners

 

Welcome folks today in this blog post we will be displaying calendar of given month and year using calendar moduleAll the full source code of the application is given below.

 

 

Get Started

 

 

In order to get started you need to make an app.py file and copy paste the following code

 

app.py

 

# Python Calendar Example

# import calendar module
import calendar

# ask of month and year
year = int(input("Please Enter the year Number: "))
month = int(input("Please Enter the month Number: "))

# Displaying the Python calendar
print(calendar.month(year, month))

 

 

Now if you execute the python script by typing the below command as shown below

See also  Python 3 Pycryptodome Example Script to Encrypt or Encode Input Raw Text Using AES Encryption Cryptography Library Full Project For Beginners

 

python app.py

 

 

As you can see we have taken the input from the user in the form of month and year and then  displaying the calendar in the command line

Leave a Reply