Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL Instant Reference

Authors: Gruber, Martin Gruber

2nd Edition

0782125395, 9780782125399

More Books

Students also viewed these Databases questions

Question

What is the most common attribute that you identified to evaluate?

Answered: 1 week ago