You are viewing a single comment's thread. Return to all comments →
I like the use of any here, I didn't think of that. You could set
leap = any([year % 4 == 0 and year % 4 != 0, year % 400 == 0])
since any returns a boolean
Seems like cookies are disabled on this browser, please enable them to open this website
Write a function
You are viewing a single comment's thread. Return to all comments →
I like the use of any here, I didn't think of that. You could set
since any returns a boolean