Skip to content

Instantly share code, notes, and snippets.

@marceloandriolli
Created October 24, 2017 01:42
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 marceloandriolli/c4d5221b93e7394787d764886c68bc7b to your computer and use it in GitHub Desktop.
Save marceloandriolli/c4d5221b93e7394787d764886c68bc7b to your computer and use it in GitHub Desktop.
def match_ends(words):
i = 0
for word in words:
if len(word) >= 2 and word[0] == word[-1]:
i += 1
return i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment