Skip to content

Instantly share code, notes, and snippets.

@roddds
Created November 17, 2013 18:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save roddds/7516735 to your computer and use it in GitHub Desktop.
Save roddds/7516735 to your computer and use it in GitHub Desktop.
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