title: Is there any way to stop code from taking in all answers at once and inputting them all instead of taking in one specific question
body: <p>I was working on a small quiz recently and I have been trying to figure out why it inputs one answer and tries to answer all the questions with one answer I have been trying to figure this out for 2 to 3 days now, sorry if there is a simple solution I am a new coder
  TLDR; code takes one answer and tries to solve all questions</p>
  <pre><code>import random
  score = 0
  n = [&quot;What is the capital of Arizona: &quot;, &quot;What thing in Arizona is a part of the 7 natural wonders of the world (ABRIVEATE ANSWER TO THE 1ST LETTER OF EACH WORD):  &quot;, &quot;what is the timezone in Arizona: &quot;]
  
  i = 0
  answer = input(random.choice(n))
  while (i &lt; 3):
    if [0]:
      if answer == &quot;Phoenix&quot; or &quot;phoenix&quot;:
        print(&quot;Correct&quot;)
        score += 1
        print(score)
      else:
          print(&quot;incorrect&quot;)
  
    if  [1]:
      if answer == &quot;TGC&quot; or &quot;TGC&quot;:
        print(&quot;Correct&quot;)
        score += 1
        print(score)
      else:
        print(&quot;incorrect&quot;)
   
    if  [2]:
      if answer == &quot;GMT&quot;:
        print(&quot;Correct&quot;)
        score += 1
        print(score)
      else:
        print(&quot;incorrect&quot;)
    i += 1
  </code></pre>