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)

Output

Leave A Reply

Your email address will not be published. Required fields are marked *

You May Also Like

In this Python program, we will create a singly linked list and remove duplicate elements from it. A linked list...
This Python program solves the Celebrity Problem by finding a person who is known by everyone but does not know...
This Python program uses a recursive approach to solve the n-Queens problem. It explores all possible combinations of queen placements...