Last active
November 18, 2015 13:25
-
-
Save akayj/f89ad835216fd5d5c3ef to your computer and use it in GitHub Desktop.
parlindrome_small
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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