Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

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)
 
PREVIOUS NEXT
Tagged: #copy #items #list #python
ADD COMMENT
Topic
Name
6+1 =