#In the Gregorian calendar a year is a leap year when the number representing it is #divisible by 4, unless it is divisible by 100, unless it is divisible by 400. Thus #years such as 1996, 1992, 1988 and so on are leap years because they are divisible by #4 but not by 100. For century years, the 400 rule is important. Thus, century years #1900, 1800 and 1700 while all still divisible by 4 are also exactly divisible by 100. #As they are not further divisible by 400, they are not leap years. Also, you can #assume that there were no leap years before 1582. Write a program that asks the user #for a year and computes whether that year is a leap year. You can assume that the #input is a valid positive integer less than 4000. You don.t need to check validity of #the input. #Example: #Input 1980 Output Leap Year #Input 1900 Output Not a Leap Year #Input 1200 Output Not a Leap Year #Input 2000 Output Leap Year #Input 3000 Output Not a Leap Year #Solution year=int(input("enter year ")) if(year>=1582): if(year%4==0 and year%100!=0): print(year,"Is Leap Year") elif(year%4==0 and year%100==0 and year%400==0): print(year,"Is Leap Year") else: print(year,"Is NOT Leap Year") else: print(year,"Is NOT Leap Year")