Write Python function to check if a string is palindrome or not
Topic: Write Python function to check if a string is palindrome or not
Solution
def isPalindrome(s): return s == s[::-1]
List all Python Programs
Solution
def isPalindrome(s): return s == s[::-1]