Last active
October 31, 2016 14:06
-
-
Save samuelbalogh/9674d836bbd1c3fcd69df504d3e9c4bb to your computer and use it in GitHub Desktop.
Returns true if argument is a palindrome.
This file contains 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 isPal(s): | |
reverse = s[::-1] | |
return s == reverse |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment