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
import random
score = 0
n = ["What is the capital of Arizona: ", "What thing in Arizona is a part of the 7 natural wonders of the world (ABRIVEATE ANSWER TO THE 1ST LETTER OF EACH WORD): ", "what is the timezone in Arizona: "]
i = 0
answer = input(random.choice(n))
while (i < 3):
if [0]:
if answer == "Phoenix" or "phoenix":
print("Correct")
score += 1
print(score)
else:
print("incorrect")
if [1]:
if answer == "TGC" or "TGC":
print("Correct")
score += 1
print(score)
else:
print("incorrect")
if [2]:
if answer == "GMT":
print("Correct")
score += 1
print(score)
else:
print("incorrect")
i += 1