Show the calender in python by R4R Team

program-

#import the calendar module
import calendar

#take imput of yaer
print("Enter the year")
n=int(input())

#find calendar of the input year
print("Calendar of ",n,"is-")
print(calendar.calendar(2019))

output-


Enter the year
2019
Calendar of 2019 is -
2019
January
MonTueWedThuFriSatSun
 123456
78910111213
14151617181920
21222324252627
28293031   
February
MonTueWedThuFriSatSun
    123
45678910
11121314151617
18192021222324
25262728   
March
MonTueWedThuFriSatSun
    123
45678910
11121314151617
18192021222324
25262728293031
April
MonTueWedThuFriSatSun
1234567
891011121314
15161718192021
22232425262728
2930     
May
MonTueWedThuFriSatSun
  12345
6789101112
13141516171819
20212223242526
2728293031  
June
MonTueWedThuFriSatSun
     12
3456789
10111213141516
17181920212223
24252627282930
July
MonTueWedThuFriSatSun
1234567
891011121314
15161718192021
22232425262728
293031    
August
MonTueWedThuFriSatSun
   1234
567891011
12131415161718
19202122232425
262728293031 
September
MonTueWedThuFriSatSun
      1
2345678
9101112131415
16171819202122
23242526272829
30      
October
MonTueWedThuFriSatSun
 123456
78910111213
14151617181920
21222324252627
28293031   
November
MonTueWedThuFriSatSun
    123
45678910
11121314151617
18192021222324
252627282930 
December
MonTueWedThuFriSatSun
      1
2345678
9101112131415
16171819202122
23242526272829
3031     

Leave a Comment:
Search
Categories
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!