Python TextCalendar Class Methods

Python TextCalendar Class has the following built-in functions.

Method Description
formatmonth() Returns a multi-line string representing the calendar of the given month.
formatyear() Returns a multi-line string representation of an m-column calendar of the given year.
prmonth() Prints the month of the given year. Also, there is no need for writing "print" operation.
pryear() Prints the calendar for an entire year Also, there is no need for a "print" operation to execute this.

Comments and Discussions!

Load comments ↻

Copyright © 2024 All rights reserved.