title: Python - printing multiple shortest and longest words from a list
body: <p><br>
  I need to go through a list and print the longest words in it. I can do this for just one word, but can't figure out how to print more than one, if there are two words that are three letters long, for instance. 
  I've tried</p>
  
  <pre><code>list.sort (key=len, reverse =True)
  print ("The longest word in the list is: " , list[0])
  </code></pre>
  
  <p>This works but only prints the first longest, which is no good for more than one longest word. </p>
  
  <p>I've also tried : </p>
  
  <pre><code>p=0
  for item in list:
      if len (item) &gt; p:
          s=item
          p = len(item)
  print (s)
  </code></pre>
  
  <p>This also the same as the previous code</p>
  
  <p>I also need to do this for the shortest word in the list. </p>
  
  <p>Apologies if this isn't a good question, it's my first.</p>