Share your repls and programming experiences

← Back to all posts
checking given year is leap year or not
SolMegerssa (0)

🚨 Don't change the code below 👇

year = int(input("Which year do you want to check? "))

🚨 Don't change the code above 👆

#Write your code below this line 👇

if year%4 ==0:
if year%100 ==0:
if year%400==0:
print ("leap year")
print ("not leap year")
print ("leap year")
print("not leap year")