Q:

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

0

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

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

I have used python 3.7 compiler for debugging purpose.

import calendar
year = int(input("Input the year : "))
month = int(input("Input the month : "))
print(calendar.month(year, month))

Result:

Input the year : 2018

Input the month : 10

    October 2018

Mo Tu We Th Fr Sa Su

 1  2  3  4  5  6  7

 8  9 10 11 12 13 14

15 16 17 18 19 20 21

22 23 24 25 26 27 28

29 30 31

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now