From 9685369da407ff84ef925cd991f5f87deb580708 Mon Sep 17 00:00:00 2001 From: Oashe02 Date: Thu, 24 Oct 2024 22:52:17 +0530 Subject: [PATCH] Check for Palindrome This is a valid code to Check for Palindrome no. in the given no. --- Check for Palindrome | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 Check for Palindrome diff --git a/Check for Palindrome b/Check for Palindrome new file mode 100644 index 0000000..4b52785 --- /dev/null +++ b/Check for Palindrome @@ -0,0 +1,5 @@ +def is_palindrome(s): + return s == s[::-1] + +print(is_palindrome("radar")) # True +print(is_palindrome("hello")) # False