From 64fe9d8640cf7824614cdc2bb5366111703cb722 Mon Sep 17 00:00:00 2001 From: jainvaidehi <54447956+jainvaidehi@users.noreply.github.com> Date: Thu, 1 Oct 2020 01:54:12 +0530 Subject: [PATCH 1/2] Created program --- Python/Program-3/program.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 Python/Program-3/program.py diff --git a/Python/Program-3/program.py b/Python/Program-3/program.py new file mode 100644 index 00000000..ac4daec0 --- /dev/null +++ b/Python/Program-3/program.py @@ -0,0 +1,8 @@ + + +a=input() +b=a[::-1] #String is reversed and stored in b +if (a==b): # If a and b both are equal string is Palindrome + print("String is Palindrome") +else: + print("String is not Palindrome") From acf8e04ee734820c61df529cb291aa9b948cd396 Mon Sep 17 00:00:00 2001 From: jainvaidehi <54447956+jainvaidehi@users.noreply.github.com> Date: Thu, 1 Oct 2020 01:56:23 +0530 Subject: [PATCH 2/2] Created README --- Python/Program-3/README.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 Python/Program-3/README.md diff --git a/Python/Program-3/README.md b/Python/Program-3/README.md new file mode 100644 index 00000000..67521f30 --- /dev/null +++ b/Python/Program-3/README.md @@ -0,0 +1,7 @@ +Program 3 + +Write a program to check whether the string is palindrome or not + +Variable description-- +a=Holds the input string +b=Holds the reverse of the string