Skip to content

Instantly share code, notes, and snippets.

@akayj
Last active November 18, 2015 13:25
Show Gist options
  • Save akayj/f89ad835216fd5d5c3ef to your computer and use it in GitHub Desktop.
Save akayj/f89ad835216fd5d5c3ef to your computer and use it in GitHub Desktop.
parlindrome_small
def parlindrome(s):
splitter = len(s)/2
return s[:splitter] == s[-1:-1-splitter:-1]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment