+ 1
Nested List
a = ['a', 'b'] n = [1, 2] x = [a, n] print(x[1]) Output [1, 2] Why the output is [1, 2]?
6 Risposte
+ 8
x = [a,b],[1,2]
0 1
So, x[1] = [1,2]
+ 7
Ausgrindtube,
> the content of x is => [['a', 'b'], [1, 2]]
+ 5
Happy to help!
+ 4
Completely correct Lothar . Thanks
+ 3
Ooooh. Got it. Thank you so much👌



