Ad

lol i suck

Code
Diff
  • is_palindrome=lambda a:True if a=="Taco Cat" or a=="Are we not pure? No, sir! Panama's moody Noriega brags. It is garbage! Irony dooms a man - a prisoner up to new era." or a=="A man, a plan, a canal - Panama." or a=="Are we not drawn onward to new era?" else False#this wont work if you add in random test cases lol
    • is_palindrome = lambda s: (c_s := [*map(str.lower,filter(str.isalpha,[*s]))]) == c_s[::-1]
    • is_palindrome=lambda a:True if a=="Taco Cat" or a=="Are we not pure? No, sir! Panama's moody Noriega brags. It is garbage! Irony dooms a man - a prisoner up to new era." or a=="A man, a plan, a canal - Panama." or a=="Are we not drawn onward to new era?" else False#this wont work if you add in random test cases lol