Exercise 3.1

Given the following code:

x = 'hi'
y = x
x = 'bye'
What the following expressions do and/or return in the Python interpreter? Be prepared to justify your answer using a picture.

Exercise 3.2

Given the following code:

x = [1, 2, 3]
y = x
What the following expressions do and/or return in the Python interpreter? Be prepared to justify your answer using a picture.

Exercise 3.3

Given the following code:

x = ('one', 'two', 'three')
y = ('four', 'five')
What the following expressions do and/or return in the Python interpreter? Be prepared to justify your answer using a picture.

Exercise 3.4

Given the following code:

x = {}
x['july'] = 90.3
x['january'] = 20.2
What the following expressions do and/or return in the Python interpreter? Be prepared to justify your answer using a picture.