Write a Python program to print the calendar of a given month and year


Introduction

Write a Python program to print the calendar of a given month and year. I have used python 3.7 compiler for debugging purpose.


techstudy.org

HP 15 Core i3 7th gen Laptop(4GB, 1TB HDD, Windows 10) | Rs. 31,490

  1. import calendar
  2. year = int(input("Input the year : "))
  3. month = int(input("Input the month : "))
  4. print(calendar.month(year, month))
  5.  

Result

python language techstudy.org

     





Related Topics




Popular Posts