Ad
Code
Diff
  • import codecs
    exec(codecs.encode('cevag(pbqrpf.rapbqr("".wbva([v sbe v va pbqrpf.rapbqr("uryyb jbeyq",rapbqvat="ebg13",reebef="vtaber")]),rapbqvat="ebg13",reebef="vtaber"))',encoding="rot13",errors="ignore"))
    • print("".join([i for i in "hello world"]))
    • import codecs
    • exec(codecs.encode('cevag(pbqrpf.rapbqr("".wbva([v sbe v va pbqrpf.rapbqr("uryyb jbeyq",rapbqvat="ebg13",reebef="vtaber")]),rapbqvat="ebg13",reebef="vtaber"))',encoding="rot13",errors="ignore"))
Code
Diff
  • import re
    def is_palindrome(s: str) -> bool:
        return re.sub('[^a-z]', '', s.lower())[::-1] == re.sub('[^a-z]', '', s.lower())
    • import re
    • def is_palindrome(s: str) -> bool:
    • temp = ''.join(x for x in s if x.isalpha()).lower()
    • return temp[::-1] == temp
    • return re.sub('[^a-z]', '', s.lower())[::-1] == re.sub('[^a-z]', '', s.lower())