# -*- coding: utf-8 -*- """ Spyder Editor This is a temporary script file. """ #This program checks whether a year is leap or not year = int(input("Please introduce a year: ")) #The rule says that it must be a multiple of 4 if (year % 4 == 0): #But not of 100 if(year % 100 != 0): print("It is a leap year") #With the exception of 400 elif(year / 400 == 0): print("It is a leap year") else: print("It is not a leap year") else: print("It is not a leap year")