You are viewing a single comment's thread. Return to all comments →
Adding parenthesis increases readability. I might be wrong though!
def is_leap(y): return ((y%4==0)and(y%100!=0)or(y%400==0))
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 →
Adding parenthesis increases readability. I might be wrong though!