Created
October 24, 2017 01:42
-
-
Save marceloandriolli/c4d5221b93e7394787d764886c68bc7b 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 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