Saint Louis University |
Computer Science 1300
|
Computer Science Department |
Ensure that you adhere to the policies on academic integrity.
(Oops. Same problem as last homework).
Using the illustration style of the chapter, draw a diagram of the final configuration that results after executing the following program:
c = [0, 1, 2]
d = c
c.append(7)
e = list(d)
e.append(8)
Using the real-world analogy of houses, explain the semantics that would be expressed by each of the following Python expressions. Do not answer the question specifically for the above scenario. Instead give an explanation of the general semantics of each Python expression in terms of what it tests or what action it causes.