diff --git a/Python/README.md b/Python/README.md index af56595a..0bd08b85 100644 --- a/Python/README.md +++ b/Python/README.md @@ -10,7 +10,7 @@ | 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. | @@ -18,6 +18,7 @@ | 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. | diff --git a/Python/program-17/program.py b/Python/program-17/program.py new file mode 100644 index 00000000..c843e104 --- /dev/null +++ b/Python/program-17/program.py @@ -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')