Given below is the code showing use of copy() function.
s = set([1, 2, 3, 4, 5])
t = s.copy()
g = s
print s == t #Output: True
print s == g #Output: True
What is use of copy() function when we can simply assign value of s in g?
Why do we have a separate function('copy') to do this task?