title: returning the word if it is of certain length in python
body: <p>I am writing code in which a word list is inputted. If any of the words in the list are of exactly 4 characters then those words will be returned in this format:  </p>
  
  <p>['word','four']</p>
  
  <p>I am making a loop to check the whole list but obviously return is stopping the function so only the first 4 letter word is getting printed. As per instructions 'return' must be used and not print and the output must be in the list format like above. any help will be appreciated. Thank you. </p>
  
  <pre><code>    def letter(list):
          word = []
          for word in list:
              if len(word)==4:
                  return word
  </code></pre>