Answered step by step
Verified Expert Solution
Question
1 Approved Answer
5 0/12 points Suppose for each statement below the two lists are fixed as L1=[1, 2, 3); L2=[4, 5, 6] Pick all statements that are
5 0/12 points Suppose for each statement below the two lists are fixed as L1=[1, 2, 3); L2=[4, 5, 6] Pick all statements that are True (hint: If you are not sure, you should print out the values of L1, L2 and L after each operation) To generate a list L that stores (1,2,3, [4,5,6]] one can do L=L1.append(L2) To generate a list L that stores (1,2,3,4,5,6]] one can do L1.append(L2); L=L1.copy To generate a list L that stores (1,2,3,4,5,6] one can do L=L1.extend(L2) To generate a list L that stores (1,2,3,4,5,6] one can do L1.extend(L2); L=L1.copy To generate a list L that stores (1,2,3, [4,5,6],4,5,6] one can do L1.append(L2); L1.extend(L2); L=L1.copy() To generate a list L that stores (1,2,3,4,5,6], 1.2,3] one can do L1.append(L2); L1.extend(L1); L=L1.copy To generate a list L that stores (1,2,3,4,5,6], 1,2,3] one can do L1.append(L2); L1.extend(L1[:3]); L=L1.copy
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started