title: How to get the length of words in a sentence?
body: <p>I am trying to get the length of each word in a sentence. I know you can use the "len" function, I just don't know how to get the length of each word.</p>
  
  <p>Instead of this</p>
  
  <pre><code>&gt;&gt;&gt; s = "python is pretty fun to use"
  &gt;&gt;&gt; len(s)
  27
  &gt;&gt;&gt;
  </code></pre>
  
  <p>I'd like to get this</p>
  
  <pre><code>6, 2, 6, 3, 2, 3
  </code></pre>
  
  <p>which is the actual length of every word.</p>