Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how can you know if a year is a leap year

leapYear = int(input("Input a Year "))

if leapYear %4 == 0:
    print("Its a leap year")
else:
    print ("Its a normal year")
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #year #leap #year
ADD COMMENT
Topic
Name
8+3 =