CSci 150: Foundations of computer science I
Home Syllabus Assignments Tests

printable version

Exam 1 Review A

[1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11]

Problem X1rA.1.

What is displayed by the below sequence of Python statements?

data = [235711]
print data[2]
data[3] = data[1]
print data[3]
data[1] = 5
print data[3]