logo CodeStepByStep logo

loop_tracing

Language/Type: Python lists list mystery

Fill in the list with the values that would be stored after the code executes:

data = [2, 18, 6, -4, 5, 1]
for i in range(len(data)):
    data[i] = data[i] + (data[i] // data[0])
list[0]
list[1]
list[2]
list[3]
list[4]
list[5]

You must log in before you can solve this problem.

Log In

Need help?

Stuck on an exercise? Contact your TA or instructor.

If something seems wrong with our site, please

Is there a problem? Contact us.