Ask Question
11 December, 17:21

To copy a list you can use this. list2 = list1[ : ]

True or False

+5
Answers (1)
  1. 11 December, 17:58
    0
    True.

    Explanation:

    The colon in square brackets is used to subsetting the list.

    for example list1=[1,2,4,6,2,5]

    print (list1[3:5])

    This will print 6,2

    Because it means the list from index 3 to 4 the last value is not inclusive. So if you write [:] it means the whole list and in the question we are assigning it to list2. So all the values from list1 will be copied to list2.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “To copy a list you can use this. list2 = list1[ : ] True or False ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers