You are viewing a single comment's thread. Return to all comments →
The calendar builtin module has a function isleap() that returns True if the year is leap, otherwise it returns False
What I just learnt from you: don't re-invent the wheel :D
haha, you are the boss.
Thanks and its working perfectly in python 3.
What change should I make , if am using python 2 ?
Thanks in advance.
You won't have to change anything for it to work
That kind of defeats the point of this exercise doesn't it?