# Computational Question

Asked 2 weeks ago, Updated 2 weeks ago, 1 views

Create a tuple ` (["3+2", 5,3], ["6/2", 3,5], ["10-2",8,3], ["2's 3 wins",8,4], ["5-2*2",1,5])` ([problem, answer, score] format)>

Show each question, ask the answer, and accumulate the score if it is correct Show the final number of correct answers and the number of incorrect answers and score output

``````t = (["3+2",5,3],[6/2",3,5],["10-2",8,3],["2's 3 wins",8,4],[5-2*2",1,5])

i=1
for i in range(len(t)):
a = input(t[i])

if a == t:
print(t)
``````

I made the code like this, but I don't know what to do. Please help me

python

2022-09-20 16:28

Homework by yourself

``````arr = (["3+2",5,3],["6/2",3,5],["10-2",8,3],["2's 3 wins",8,4],["5-2*2",1,5])
score = 0
great = 0
for i in arr:
print(What is i + "? :")
n = int(input())
if n == ?:
great += 1
score += ?
print ("Correct!")
else:
print ("Wrong! Wrong")
print("Correct answer:" + str(great) + "Wrong answer:" + str(bad) + "Score"
``````

2022-09-20 16:28

## If you have any answers or tips

Popular Tags
python x 4519
android x 1589
java x 1455
javascript x 1363
c x 881
php x 682
html x 629
swift x 586
ios x 538
mysql x 397