MCQOPTIONS
Bookmark
Saved Bookmarks
→
Technical MCQs
→
2D Transformation And Answers in Technical MCQs
→
How to copy one list to another in python?..
1.
How to copy one list to another in python?
A.
l1[] = l2[]
B.
l1[] = l2
C.
l1[] = l2[:]
D.
l1 = l2
Answer» D. l1 = l2
Show Answer
Discussion
No Comment Found
Post Comment
Related MCQs
Which one of the following is immutable data type?
Which one of the following is mutable data type?
What is the output of the following program : print((1, 2) + (3, 4))
Can tuple be used as dictionary key in python?
What type of data is: arr = [(1,1),(2,2),(3,3)]?
Suppose a tuple arr contains 10 elements. How can you set the 5th element of the tuple to 'Hello'?
How to copy one list to another in python?
How to get last element of list in python? Suppose we have list with name arr, contains 5 elements.
Suppose a list with name arr, contains 5 elements. You can get the 2nd element from the list using:
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply