From 0a579ba9b23f6ccfa2c4f3a0db81a08861bcae74 Mon Sep 17 00:00:00 2001 From: kowsalya6-tech Date: Fri, 31 Oct 2025 18:39:58 +0530 Subject: [PATCH] Add palindrome check function --- palindrome | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 palindrome diff --git a/palindrome b/palindrome new file mode 100644 index 00000000..922b1736 --- /dev/null +++ b/palindrome @@ -0,0 +1,7 @@ +def check(num): + if str(num) == str(num)[::-1]: + print("Palindrome") + else: + print("Not Palindrome") + +check(550)