jazzy9498 jazzy9498
  • 14-09-2019
  • Computers and Technology
contestada

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

True or False

Respuesta :

ExieFansler ExieFansler
  • 19-09-2019

Answer:

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.

Answer Link

Otras preguntas

Question 1: A source can be either primary or secondary. true or false Question 2:When conducting research, you should check gathered information against o
Find the missing number:
4$ is what percent of 50$ ?
When building a house, you have the choice of seven different floor plans, brick or stone exterior and carpet or hardwood flooring in the house. How many choice
Composition of individual food products is defined through federal:
Which war was documented as the shortest
What is 12/25, 0.5, 9/20, 40% in least to greatest
The rate of speed at which a piece of music is played is its:
Which sentence below shows correct use of em dashes? By the end-of-the-story, no one could believe it the main-character, was dead. By – the end of the story
How does global wind affect weather in the U.S. ?