title: How to check if the first half of a word is the same as the second half, within a list?
body: <p>How can I check if the first half of a word is the same as the second half within a list of words and determine the number of words whose halves are the same within the list?</p>
  <p>For example, given the list:</p>
  <pre class="lang-py prettyprint-override"><code>[&quot;abcabc&quot;,&quot;abcccc&quot;,&quot;cbccbc&quot;,&quot;cccbbb&quot;]
  </code></pre>
  <p>I want to output:</p>
  <pre class="lang-py prettyprint-override"><code>[&quot;abcabc&quot;, &quot;cbccbc&quot;]
  </code></pre>