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.
 

15 lines
359 B

# 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")