How to find a year is leap year or not?

3 answer(s)
Answer # 1 #

Shortcut: If Feb has 29 days, it’s a leap year. Otherwise, 28 days → not leap year.

[3 Month]
Answer # 2 #

Leap year rules:- Year divisible by 4 → Possible leap year - Year divisible by 100 → Not leap year - Year divisible by 400 → Leap year Example: 2000 → leap year; 2100 → not leap year.

[3 Month]
Answer # 3 #

In Python: ```pythonyear = 2024if (year%4==0 and year%100!=0) or (year%400==0): print("Leap year")else: print("Not a leap year")

[3 Month]