Programming Languages
Python
Subjective
Sep 30, 2025
Write a Python program to check if a string is a palindrome.
Detailed Explanation
def is_palindrome(s):\n s = s.lower().replace(" ", "")\n return s == s[::-1]\n\n# Usage: is_palindrome("A man a plan a canal Panama") returns True
Discussion (0)
No comments yet. Be the first to share your thoughts!
Share Your Thoughts