We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Python
- Introduction
- Write a function
- Discussions
Write a function
Write a function
Sort by
recency
|
2866 Discussions
|
Please Login in order to post a comment
if (year%4==0 and year%100!=0): leap=True elif(year%400==0): leap=True else: leap=False return leap
i think its the optimal solution
if(year%400==0): leap=True else:
leap=False
Who make this idiot web site , because if your code is right but the site show you wrong ,I think the developer don't know in the coding there lots of way to write a single purpose output