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 tutorial, you will learn how to Display Prime Numbers Between Two Intervals using the if and else...
In this python tutorial, you will learn how to Calculate Standard Deviation with built in functions of the python programming...
In this Python program, we will convert temperature values from Celsius to Fahrenheit. The Celsius and Fahrenheit scales are two...