Question: On Python 3.6, determine the output of the following code: a=([10,11], [12,13,14], {15,16}) x=a z=[100] z.extend(x) x[2].add(Hello) x=a[0] x.append (100) x[0:2] = [200, 300] a
On Python 3.6, determine the output of the following code:
a=([10,11], [12,13,14], {15,16})
x=a
z=[100]
z.extend(x)
x[2].add(Hello)
x=a[0]
x.append (100)
x[0:2] = [200, 300]
a [1].append(a[2])
a[1][3].add(50)
print(a)
print(x)
print(z)
Explain this result (draw pictures).
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
