Archive for the ‘Python’ Category

How to copy or clone list in Python

Lists are ordered collection object type. Lists can contain any sort of object: numbers, strings, tuple,dictionary and even other lists. Lists are mutable objects. How to copy or clone list in Python 1. Create List >>> L=[‘Python’,’R’,’SAS’,’SPSS’,’Java’,’Data Analytics’,[1,2,3,4],10,3.14]

Powered by k2schools