Python program to check if a string is palindrome or not
Example palindrome in python
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")
It is a confirm palindromes String
I hope you get an idea about in Python: How to check a number is palindrome?.
I would like to have feedback on my infinityknow.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.