You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Write a program that works out whether if a given year is a leap year. A normal year has 365 days, leap years have 366, with an extra day in February.
year = int(input("Which year do you want to check? "))
if year % 4 == 0:
if year % 100 != 0 or year % 100 == 0 and year % 400 == 0: