Python3 Calendar
# Python3.x Python Generate Calendar
[ Python3 Examples](#)
The following code is used to generate a calendar for a specified date:
## Example (Python 3.0+)
# Filename : test.py# author by : www.# Import the calendar module import calendar# Input the specified year and month yy = int(input("Enter year: "))mm = int(input("Enter month: "))# Display the calendar print(calendar.month(yy,mm))
Executing the above code produces the following output:
Enter year: 2015Enter month: 6 June 2015Mo Tu We Th Fr Sa Su 1 2 3 4 5 6 7 8 9 10 11 12 13 1415 16 17 18 19 20 2122 23 24 25 26 27 2829 30
[ Python3 Examples](#)
YouTip