Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (13 sloc) 383 Bytes
# Leap year
# 2000 is century year
yr = int(input("Enter a year:"))
if yr % 4 == 0:
if yr % 100 == 0:
if yr % 400 == 0:
print("{} is a century leap year" . format(yr))
else:
print("{} is not a leap year" . format(yr))
else:
print("{} is a simple leap year". format(yr))
else:
print("{} is not a leap year" . format(yr))
You can’t perform that action at this time.