title: I can't select an element that if selected randomly from a list, something else happens
body: <p>How do I manage to get the system to print <code>This letter is &quot;a&quot;.</code> when <code>a</code> in list <code>aList</code> is randomly selected?
  This is what I have thought of and found, but it hasn't been working, and I have only been coding as of yesterday so my knowledge of it is limited.</p>
  <pre><code>import random
  aList = [&quot;a&quot;, &quot;b&quot;, &quot;c&quot;, &quot;d&quot;]
  bList = random.choice(aList)
  print(bList)
  while True:
  if aList.state == 0:
  print(&quot;This letter is &quot;a&quot;.&quot;)
  </code></pre>