Top 10 Python Basic Programs – Most Common Tutorials
Here is the list of programs
-
Leap Year Check
year= 2000 if (year % 4) == 0: if (year % 100) == 0: if (year % 400) == 0: print("{0} is a leap year".format(year)) else: print("{0} is not a leap year".format(year)) else: print("{0} is a leap year".format(year)) else: print("{0} is not a leap year".format(year))
Tags : top python program, basic python code, leap year python program.