Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@
| Program-06 | Program to print a pattern. |
| Program-07 | Program to print a pattern. |
| Program-08 | Program to print a pattern. |
| Program-09 | Program to check if he number is armstrong or not. |
| Program-09 | Program to check if the number is armstrong or not. |
| Program-10 | Program to shuffle a deck of cards. |
| Program-11 | Program to print fibonacci series. |
| Program-12 | Program to check if a number is prime or not. |
| Program-13 | Program to find a number in an array using binary search. |
| Program-14 | Program to find simple interest for given principal amount, time and rate of interest. |
| Program-15 | Program to sort the array and give the time to sort the array. |
| Program-16 | Program to print a right angled triangle. |
| Program-17 | Program to check leap year or not. |



Expand Down
7 changes: 7 additions & 0 deletions Python/program-17/program.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

year = int( input('Enter Year: '))

if (year%4) and (year%100) and (year%400) == 0:
print('Leap year')
else:
print('Not leap year')