palindrome in python

Posted by Paidboom - 5 months ago

palindrome in python : Python program to check if a string is palindrome or not

user_string = "Jdk14341kDj"
user_string = user_string.casefold()
user_rev_string = reversed(user_string)
if list(user_string) == list(user_rev_string):
    print("It is a confirm palindromes String")
else:
    print("It is a confirm not palindromes String")