In this example, i’ll show you how to print the calendar of a given month and year.
Python Code:
1 2 3 4 5 6 |
import calendar year = int(input("Input the year : ")) month = int(input("Input the month : ")) print(calendar.month(year, month)) |
Output: