Given the following code:
What the following expressions do and/or return in the Python interpreter? Be prepared to justify your answer using a picture.x = 'hi' y = x x = 'bye'
x[1]x[0] = 'p'x.upper()y[1]y[3]Given the following code:
What the following expressions do and/or return in the Python interpreter? Be prepared to justify your answer using a picture.x = [1, 2, 3] y = x
yy[0] = 'one'z = x + yx[1] = 'two'z.append(4)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.
x[2]y.append('six')x + yGiven 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.
xx['january']x['July']len(x)x.update({'february': 20.8})