Practice: mystery1#

What are the values of the elements in list a1 after the following code executes?

def mystery1(a1, a2):
    for i in range(len(a1)):
        a1[i] += a2[len(a2) - i - 1]

a1 = [1, 3, 5, 7, 9]
a2 = [1, 4, 9, 16, 25]
mystery1(a1, a2)

Each of the questions asks for the value at one index. Write your result as an int.

Note

This problem was borrowed from Code Step by Step .

Question 0#

a1[0]

Your Task

Write your answer down in your own space.

Question 1#

a1[1]

Your Task

Write your answer down in your own space.

Question 2#

a1[2]

Your Task

Write your answer down in your own space.

Question 3#

a1[3]

Your Task

Write your answer down in your own space.

Question 4#

a1[4]

Your Task

Write your answer down in your own space.