Answers for "how to duplicate list in python"

1

copy one list to another python

thislist = ["apple", "banana", "cherry"]
mylist = thislist.copy()
print(mylist)
Posted by: Guest on May-17-2020

Code answers related to "how to duplicate list in python"

Python Answers by Framework

Browse Popular Code Answers by Language