Python Introducing Lists Using Lists Mutability

Alphonso Sensley II
PRO
Alphonso Sensley II
Pro Student 8,503 Points

Is .copy() available in Python 2.7.10 ?

I was following the Mutability video and after I modify the function as the video instructs; I get an error. Does anyone know if the .copy() method used in the video is only available in Python versions later than 2.7.10?

1 Answer

KRIS NIKOLAISEN
PRO
KRIS NIKOLAISEN
Pro Student 46,083 Points

Copy is in the python docs for 2.7

If I am reading that page correctly it looks like copy was added in 2.5 Changed in version 2.5: Added copying functions.