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

find the area of a circle with a diameter of 22 inches?
How long was a million days ago in hours?
What does y-intercept represent?
There are 50 questions to answer in a trivia contest. Each player starts with 100 points. He or she earns 10 points for each correct answer but loses 4 points w
is it true or false that after the american revolution conflicts in the northwest territory erupted between remaining british soldiers and native americans
Verify the identity sec(beta) - 1 / cos(beta) = sec(beta)
what do you call two ratios that have the same value
what is x3+3x2-x-3 factor by grouping
find the area of a circle with a diameter of 22 inches?
How long was a million days ago in hours?