Ask Question
29 June, 18:12

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

True or False

+1
Answers (1)
  1. 29 June, 21:30
    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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers