From 5835f900fd00ff21ed2235dab6117c5ffeaab587 Mon Sep 17 00:00:00 2001 From: MOHAMED SHAFI M S Date: Sun, 30 Oct 2022 12:53:20 +0530 Subject: [PATCH] Python program to find palindrome string --- Python/palindrome_string.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 Python/palindrome_string.py diff --git a/Python/palindrome_string.py b/Python/palindrome_string.py new file mode 100644 index 0000000..7b8998e --- /dev/null +++ b/Python/palindrome_string.py @@ -0,0 +1,8 @@ +def pal(num): + x1 = num[::-1] + if x1 == x: + print('palindrome') + else: + print('not a palindrome') + +print(pal('edureka'))