Skip to content

Instantly share code, notes, and snippets.

@brettfreer
Last active August 9, 2016 08:13
Show Gist options
  • Save brettfreer/ac9157f31ea9d06c92ef138ef34f0b3b to your computer and use it in GitHub Desktop.
Save brettfreer/ac9157f31ea9d06c92ef138ef34f0b3b to your computer and use it in GitHub Desktop.
Test whether string is a palendrome
def isPalendrome(s):
return s == s[::-1]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment