Write a program to check whether a string is palindrome or not in python

Write a program to check whether a string is palindrome or not in python. In the Python programming language, write a palindrome or not software. In the Python programming language, this is the simple set program. This software is designed to disseminate information about the fundamental concepts of the Python programming language.

def isPalindrome(a):
return a == a[::-1]
a = "madam"
ans = isPalindrome(a)
if ans:
print("Yes")
else:
print("No")

Output

Yes