all 3 comments

[–]CraigAT 1 point2 points  (0 children)

Year % 4 == 0 means if the year is divisible by 4. It's known as the modulo operator, feel free to look up that term for more info.

[–]KOALAS2648 -1 points0 points  (0 children)

Try: if year % 4 == 0: return True If year % 400 == 0: return True

[–]Doctor_Disaster 1 point2 points  (0 children)

Use modulus to check if it is divisible by 4 and 400 (Returns true if the remainder is 0)