Write a program to check whether the string is a palindrome or not
Topic: Write a program to check whether the string is a palindrome or not
Solution
def isPalindrome(s): return s == s[::-1] s = "malayalam" ans = isPalindrome(s) if ans: print("Yes") else: print("No")
List all Python Programs