How to print a calendar of month from a year in python?

Write a program to print a calendar of month from a year in python.

You can get a python program below which will take two arguments year (eg. 2019) and month (eg. 6) in integer format and will display complete calendar of the month from that year you will enter from console.


import calendar

year = int(input("Please enter year:"))
month = int(input("Please enter month:"))

print(calendar.month(year, month))

 

Just paste the above code in a python file and execute.