To check whether the year is leap year or not


#To check whether the year is leap year or not year = int(input('Enter the year: ')) if year%100==0: if year%400==0: print(year,'year is leap year') else: print(year,'year is not a leap year') elif year%4==0: print(year,'year is leap year') else: print(year,'is not a leap year')

Comments

Popular Post