-copy() is a python in-build function which are applicable only on list ans set data tpye in python. and it copy the content of one sequence to another sequence.
Syntax-
seq.copy()
-Here seq will be list or set.
program-
l=[1,2,3]
l1=l.copy()
print(l1)
l1=["one","two","three"]
l1=l.copy()
print(l1)
s=set([4,5,6])
s1=s.copy()
print(s1)
[1, 2, 3]
[1, 2, 3]
{4, 5, 6}