You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
359 B

1 year ago
# Which year do you want to check?
year = int(input())
# My solution (same as hers)
if year % 4 == 0:
if year % 100 == 0:
if(year % 400 == 0):
print(f"{year} is a Leap Year")
else:
print(f"{year} is NOT a Leap Year")
else:
print(f"{year} is a Leap Year")
else:
print(f"{year} is NOT a Leap Year")