python program with match_ends
<pre><code># 5.- 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.
#       For example, the result of n = n + 1 can be also achieved by n += 1.



def match_ends(words):
  # +++your code here+++
  if len(words)&gt;=2:
    return words[0]and words[-1:]==words[-1:]
    words+=words
</code></pre>

<p>What do you guys think I'm doing wrong and how should I improve this?</p>

<p>Here's the result:</p>

<pre><code>match_ends
  X  got: True expected: 3
  X  got: '' expected: 2
 OK  got: True expected: 1
</code></pre>
