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

What is the significance of the title “Children of the Sea”? What does it mean to be a “child of the sea”? Why might Danticat have selected this title? Use evid
Tres hits por lado es estándar en voleibol ahora, ¿en qué año comenzó esto? 1919 1916 1920 1915
"I am having trouble to log in to my account so I am trying to reset my password, but I am not receiving any confirmation emails from you. Can you please help m
What is the slope of the line?
Raj is interested in how religious beliefs influence political engagement. Which level of analysis best fits his research questions?
Please help with this question
what is 1+1? because i have been confused
(5n+ 5.82) + (2.29n+7.67) = (5n+______) + (5.82 +____
all their efforts were well.....after they finished their work on the project lasting 2 months without any rest
Can some one do one two and four Algebra 2