I am trying to format output of an index and list from this:
[6]
[7]
[8]
[9]
The answers should be:
['b', 'c', 'a', 'c']`
To more like this:
[6] b
[7] c
[8] a
[9] c
Here is the code snippet:
print( "Here are the questions the you got wrong: ")
for i in range (0, 10):
if q[i] != answers[i]:
print ( [i+1],)
else:
("You got all of the questions correct, Good Job. ")
print("The answers should be: ")
print(wrongList)