You are viewing a single comment's thread. Return to all comments →
that could evaluate to a number instead of True for years divisible by 4 but not 100. so you need to wrap it in a bool(...)
return bool(not year%4 and year%100 or not year%400)
Write a function
You are viewing a single comment's thread. Return to all comments →
that could evaluate to a number instead of True for years divisible by 4 but not 100. so you need to wrap it in a bool(...)