title: Appending letters to a list in a while loop
body: <p>I am trying to append the first word of a sentence to an empty list. The current code is below:</p>
  
  <pre><code>sentence = input("Enter sentence: ")
  
  subject = []
  print (subject)
  
  x = 0
  while True:
      letter = sentence[x]
      if letter != " ":
          print (letter)
          subject.append(letter)
          x = x + 1
  
  print (subject)
  </code></pre>
  
  <p>It currently prints this:</p>
  
  <pre><code>Enter sentence: Cherries are red fruit
  
  []
  C
  h
  e
  r
  r
  i
  e
  s
  </code></pre>
  
  <p>It seems to ignore my attempt to append the result to the empty list... Help, please! </p>