Created
November 17, 2013 18:53
-
-
Save roddds/7516735 to your computer and use it in GitHub Desktop.
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 end_other(a, b): | |
a.lower() | |
b.lower() | |
if len(a) > len(b): | |
if a[len(b):] == b: | |
return True | |
return False | |
else: | |
if b[len(a):] == a: | |
return True | |
return False |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment