Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

leap year python

y = int(input())
if (y % 400 == 0) or (y % 100 != 0 and y %4 == 0):
    print(y,"is leap year.")
else:
    print(y,"isn't leap year.")
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #leap #year #python
ADD COMMENT
Topic
Name
3+1 =