Answer:
finished = False
numA = [4, 1, 6, 10, 2, 3, 7, 9, 11, 12, 5, 8]
numB = [2, 12, 10, 11, 1, 3, 7, 9, 4, 8, 5, 6]
while True:
pick = input("Would you like to practice addition (+) or multiplication (*)?")
if pick == "+":
for o, k in zip(numA, numB):
ans = input(f"What is {o} + {k}?")
if ans == str(o + k):
print('Correct!\n')
else:
print(f"Incorrect! The correct answer was {o + k}\n")
finished = True
elif pick == "*":
for o, k in zip(numA, numB):
ans = input(f"What is {o} * {k}?")
if ans == str(o * k):
print('Correct!\n')
else:
print(f"Incorrect! The correct answer was {o * k}\n")
finished = True
else:
print('Incorrect Input!')
if finished:
print('Thanks for playing!')
break
Explanation:
aduhhhh