From 443426fcad08d496781caa1cc5a585305816d8e6 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 7 Oct 2020 14:26:22 +0530 Subject: [PATCH 1/4] new program --- Python/README.md | 3 ++- Python/program-17/program.py | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 Python/program-17/program.py 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') From 9214b3b9bfbfb6fb604b1dde741403a3153863bd Mon Sep 17 00:00:00 2001 From: Swasthik Shetty <42874695+swaaz@users.noreply.github.com> Date: Wed, 7 Oct 2020 16:20:40 +0530 Subject: [PATCH 2/4] Rename Python/program-17/program.py to Python/program-18/program.py --- Python/{program-17 => program-18}/program.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename Python/{program-17 => program-18}/program.py (100%) diff --git a/Python/program-17/program.py b/Python/program-18/program.py similarity index 100% rename from Python/program-17/program.py rename to Python/program-18/program.py From d33b8c94cb7de3a2f436d831008ad5924ec34b25 Mon Sep 17 00:00:00 2001 From: Swasthik Shetty <42874695+swaaz@users.noreply.github.com> Date: Wed, 7 Oct 2020 16:21:08 +0530 Subject: [PATCH 3/4] Rename Python/program-18/program.py to Python/program-19/program.py --- Python/{program-18 => program-19}/program.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename Python/{program-18 => program-19}/program.py (100%) diff --git a/Python/program-18/program.py b/Python/program-19/program.py similarity index 100% rename from Python/program-18/program.py rename to Python/program-19/program.py From d45d9e7179cbb117f0d73b0f0d0420ba29d8d65b Mon Sep 17 00:00:00 2001 From: Swasthik Shetty <42874695+swaaz@users.noreply.github.com> Date: Wed, 7 Oct 2020 16:21:28 +0530 Subject: [PATCH 4/4] Rename Python/program-19/program.py to Python/program-20/program.py --- Python/{program-19 => program-20}/program.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename Python/{program-19 => program-20}/program.py (100%) diff --git a/Python/program-19/program.py b/Python/program-20/program.py similarity index 100% rename from Python/program-19/program.py rename to Python/program-20/program.py