Post

Yogesh More
Yogesh More@Yogeshmore2206·
@PythonPr 3 option B as [3,4] is a single element added to the original one
English
0
0
0
2
Sanaullah Khan
Sanaullah Khan@SkhanOps·
@PythonPr B. Since the list [3, 4] is appended as a third element to x, thus x becomes [1, 2, [3, 4]].
English
0
0
3
163
Jimmy Fikes
Jimmy Fikes@akajim·
@PythonPr B. The list [3,4] is appended to x as a 3rd element, so 3
English
0
0
1
224
Questioner
Questioner@philosophiSingh·
@PythonPr B. Justification: the list is appended to x’s list, creating a list within a list
English
0
0
2
236
Asotsiaalne Autist
Asotsiaalne Autist@asotsiaalne·
@PythonPr 3, I think. Unless I confuse append with extend again. The last element would be a list within a list.
English
0
0
1
61
MysteryVibe
MysteryVibe@mysteryvibe·
TL;DR: spent way too long trying to figure out the ED thing without doing the pill route. Wish I'd found Tenuto first.
English
10
5
172
637.8K
ExamAdda
ExamAdda@examaddaorg·
@PythonPr It's 3 append() always adds one item (the whole nested list), not its contents. Classic append vs extend gotcha
English
0
0
5
152
Paylaş