title: How to return all list elements of a given length?
body: <p>I'm trying to return words that have a specific length.</p>
  <p>This is my code so far. <code>words</code> is a list and <code>size</code> is a positive integer.</p>
  <pre class="lang-py prettyprint-override"><code>def by_size(words, size)
      for word in words:
          if len(word) == size:
  </code></pre>
  <p>I'm not sure how to continue. <code>by_size(['a', 'bb', 'ccc', 'dd'], 2)</code> should return <code>['bb', 'dd']</code>. Any suggestions would be of great help.</p>