Newbie Python programmer tangling with Lists.
- by Sergio Tapia
Here's what I've got so far:
# A. match_ends
# Given a list of strings, return the count of the number of
# strings where the string length is 2 or more and the first
# and last chars of the string are the same.
# Note: python does not have a ++ operator, but += works.
def match_ends(words):
counter = 0
for word in words:
if len(word)…