Answers for "copy a list to another in python"

0

how to copy items from 1 list to another in python

subjects = ["scince","computer","english","sst"]
copy_subjects = subjects.copy()
print(copy_subjects)
# using list method.
subjects = ["scince","computer","english","sst"]
copy_subjects = list(subjects)
print(copy_subjects)
Posted by: Guest on December-26-2021

Code answers related to "copy a list to another in python"

Python Answers by Framework

Browse Popular Code Answers by Language