Top 10 Python Basic Programs – Most Common Tutorials
Here is the list of programs
-
Leap Year Check
1 2 3 4 5 6 7 8 9 10 11 |
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.