From 724fc79ad5f172c9d4558e43cbc9440ca7be83a0 Mon Sep 17 00:00:00 2001 From: Ambika K Date: Wed, 29 Oct 2025 22:02:51 +0530 Subject: [PATCH] Create Checking palindrome --- Checking palindrome | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Checking palindrome diff --git a/Checking palindrome b/Checking palindrome new file mode 100644 index 0000000..e956027 --- /dev/null +++ b/Checking palindrome @@ -0,0 +1,10 @@ +a = input() +i = 0 +while i < len(a): + if a[i] !=a[len(a)-i-1]: + break + i = i+1 +if i==len(a): + print ("It is a palindrome") +else: + print ("Not a palindrome")