Python Program to display MIN Year and MAX Year

In this post, you’ll learn how to display the minimum year and the maximum year that is represented using the date class in Python.

How to display MIN year and MAX Year in Python?

# Author : DeveloperPublish
# Python program to display MINYEAR and MAXYEAR
# import the built in module datetime
import datetime
from datetime import date
print ("Minimum year is : ",end="")
print (datetime.MINYEAR)
print ("Maximum  year is : ",end="")
print (datetime.MAXYEAR)