Python program to check find the given year is a leap year or not

0
1691
year=int(input("Please enter a year to be check leap year or not: "))
if(year%4==0 and year%100!=0 or year%400==0):
    print("This year is a leap year")
else:
    print("This year is not a leap year")

    Output 1:
           Please enter a year to be check leap year or not: 2012
           This year is a leap year
    Output 2: 
           Please enter a year to be check leap year or not: 2015
           This year is not a leap year

इन्हें भी देखें।

Python Programs के लिये यहाँ click करें।

 

 

 

Python program to check find the given year is a leap year or not program to check find the given year is a leap year or not in python write a program to check find the given year is a leap year or not in python write a python program to check find the given year is a leap year or not leap year program in python find the given year is a leap year or not program to check whether the given year is a leap year or not program to check whether the given year is a leap year or not in python python program to check whether the given year is a leap year or not write a program to check whether a given year is a leap year or not program to check whether a given year is leap year or not python program to check whether a given year is leap year or not program to check whether the given year is leap year or not program to check given year is leap year or not program to check whether given year is leap year or not

LEAVE A REPLY

Please enter your comment!
Please enter your name here