Answers for "Given a string s, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases."

0

Given a string s, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.

s = input()
newS = [i.lower() for i in s if i.isalnum()]
print(newS == newS[::-1])
Posted by: Guest on October-11-2021

Code answers related to "Given a string s, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases."

Browse Popular Code Answers by Language