fork download
  1. import re
  2.  
  3. def codingchallenge(strParam):
  4. # Remove non-letter characters, leaving only alphabetic characters
  5. cleaned_str = re.sub(r'[^a-zA-Z]', '', strParam).lower()
  6.  
  7. # Check if the cleaned string is a palindrome
  8. return cleaned_str == cleaned_str[::-1]
  9.  
  10.  
  11.  
Success #stdin #stdout 0.04s 63292KB
stdin
Anne - I vote more race Rome-to-Vienna
stdout
Standard output is empty