Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

it exceeds #7

Open
guruprasadhj opened this issue Mar 24, 2020 · 0 comments
Open

it exceeds #7

guruprasadhj opened this issue Mar 24, 2020 · 0 comments

Comments

@guruprasadhj
Copy link

def is_leap(year):
leap = False

# Write your logic here
if year % 400 == 0:
    leap = True
elif year % 100 == 0:
    leap = False
elif year % 4 == 0 and **year % 100 !=0**:
    leap = True

return leap

year = int(raw_input())

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant