HR파이썬 Write a function

개요[ | ]

HR파이썬 Write a function
해커랭크 Python
# 문제 비고
HR파이썬 Introduction e
1 HR파이썬 Say "Hello, World!" With Python
2 HR파이썬 Python If-Else
3 HR파이썬 Arithmetic Operators
4 HR파이썬 Python: Division
5 HR파이썬 Loops
6 HR파이썬 Write a function
7 HR파이썬 Print Function

def is_leap(year):
    leap = False
    if year%4 == 0:
        leap = True
        if year%100 == 0:
            leap = False
            if year%400 == 0:
                leap = True
    return leap
year = int(input())
print(is_leap(year))
문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}