def is_leap_year(year):if (year % 4 == 0 and year % 100 != 0) or (year % 400 ==
23-03-2024
def is_leap_year(year):
if (year % 4 == 0 and year % 100 != 0) or (year % 400 == 0):
return True return False
year = int(input("Enter a year: ")) i
f is_leap_year(year):
print("Leap year")
else:
print("Not a leap year")
Copyrights © 2024 letsupdateskills All rights reserved