Posts by developeer4rt5-9 • 57 points
1 post
-
3
votes1
answer79
viewsQ: Adding to a list itself. What happens?
l1 = [1, 2, 3] l2 = l1 l1.append(l2) print(l1) Why does this algorithm return a three-point list? What does this new list mean?
1 post
3
votes1
answer79
viewsl1 = [1, 2, 3] l2 = l1 l1.append(l2) print(l1) Why does this algorithm return a three-point list? What does this new list mean?