From 31f419708f72dc605e2abb325647faf6722e7449 Mon Sep 17 00:00:00 2001 From: deekshitha1425 <37473578+deekshitha1425@users.noreply.github.com> Date: Sun, 18 Mar 2018 09:43:51 +0530 Subject: [PATCH] Create 7_palindrome.py --- 7_palindrome.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 7_palindrome.py diff --git a/7_palindrome.py b/7_palindrome.py new file mode 100644 index 0000000..2b6ab75 --- /dev/null +++ b/7_palindrome.py @@ -0,0 +1,6 @@ +x=input("enter a string") +x_rev=str(x[::-1]) +if x==x_rev: + print("palindrome") +else: + print("not a palindrome")