title: How do I loop over a string and add words that start with a certain letter to an empty list?
body: <p>So for an assignment I have to create an empty list variable <code>empty_list = []</code>, then have python loop over a string, and have it add each word that starts with a <code>'t'</code> to that empty list. My attempt:</p>
  
  <pre><code>text = "this is a text sentence with words in it that start with letters"
  empty_list = []
  for twords in text:
      if text.startswith('t') == True:
          empty_list.append(twords)
      break
  print(empty_list)
  </code></pre>
  
  <p>This just prints a single [t]. I'm pretty sure I'm not using <code>startswith()</code> correctly. How would I go about making this work correctly?</p>