GPT-3 Authors A Python Function To Check If A String Is A Palindrome

Prompt

def is_palendrome(s):
"""Check whether a string is a palindrome"""

Output

s = s[::-1]

return s == s[::-1]