Ask Question

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

True or False

+5
Answers (1)
  1. 10 April, 19:55
    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?
Find an answer to your question 👍 “To copy a list you can use this. list2 = list1[ : ] True or False ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers