title: How create a list of word lengths for the words in string?
body: <p>doesn't work for me in create list of word lengths ?</p>
  
  <pre><code>     str = "Python is a programming language"
       str = str.split()
  
       for char in str:
           len(char)
           char = words_in_list
    print(list(words_in_list))
  </code></pre>
  
  <p>i think output need to be like that 
          [6, 2, 1, 11, 8]</p>