Home
Download App
Study Material
{{ shortTitle }}
Video Lessons
Practice Tests
Ask Doubts
Pricing
JOIN NOW
Computer Science
Out of the following, what is correct syntax to copy one list into another?
listA = listB[ ]
listA = listB[:]
listA = listB[ ]( )
listA = list(listB)
Python List Manipulation
24 Likes
Answer
listA = listB[:]
listA = list(listB)
Answered By
8 Likes
Related Questions
Given a list L= [10, 20, 30, 40, 50, 60, 70], what would L[-3 : 99] return?
View Answer
Bookmark Now
To find the last element of list namely 'smiles' in Python, .......... will be used.
View Answer
Bookmark Now
What is printed by the Python code?
print(list(range(3)))
View Answer
Bookmark Now
Which of the following commands will create a list?
View Answer
Bookmark Now