python calendar

Solutions on MaxInterview for python calendar by the best coders in the world

showing results for - "python calendar"
Victoria
30 Jul 2018
1import calendar
2
3# to set the first weekday to SUNDAY.
4calendar.setfirstweekday(calendar.SUNDAY)
5print(calendar.month(2020, 10 ))
6
Edmund
16 Aug 2018
1please check out my video also - https://www.youtube.com/watch?v=ZA3XAZ-dB5M&t=9s
2please subscribe my channel - https://bit.ly/2Me2CfB
3
4# importing the calendar module
5import calendar
6
7#taking input of year from the user
8y = int(input("ENTER THE YEAR : "))
9
10#taking input of month from the user
11m = int(input("ENTER THE MONTH : "))
12
13# making calendar in the 'cal' variable
14cal = calendar.month(y, m)
15
16# print the cal (calendar is stored in the cal variable)
17print(cal)
Lia
24 Jan 2018
1import calendar 
2
3print("Your Calender\n \n ")
4
5y = int(input("Enter the Year : "))
6m = int(input("Enter the month : "))
7try:
8    mycalender = calendar.month(y , m)
9    print("\n", mycalender)
10except IndexError:
11    print("Its out of range")    
Valeria
25 Jul 2019
1import calendar
2yio = int(input('Input a month'))
3s = int(input('Input a year'))
4print(calendar.month(s,yio))