I'm learning python from datacamp and there is a question puzzles me a lot. Here is the original code, and the task is to: change the element in areas_copy without any change in areas.
Create list areas
areas = [11.25, 18.0, 20.0, 10.75, 9.50]
Create areas_copy
areas_copy = areas
Change areas_copy
areas_copy[0] = 5.0
Print areas
print(areas)
Here is the instruction: You can do this with list() or by using [:] I know how to do that using copy(), but I don't understand the instruction.
Could someone please explain the instruction to me? Thanks