read.cash Log in
@MyHero

Program 101: Calendar using Python This program display a calendar of the given month and year Note: I'm using/import a built-in function: calendar module to perform date, month, and calendar-related operations . Live Demo: https://onlinegdb.com/ytiglqLCp- Code: #Calendar using Python import calendar yr = int (input ("Enter the Year: ")) mm = int (input ("Enter the Month: ")) if mm > 13 or mm <= 0: print("\nThe month must be in the range of 1 to 12.") else: print("\n" + calendar.month(yr, mm))

5 comments

Log in to join in Reading is open to everyone. Replying needs an account.