Learn Before
Concept
copy()
The copy() method returns a copy of the set. Usage:
students = {"John", "Joe", "Jerry"} clone = students.copy() print(clone)
The students set is copied to clone. The final print statement outputs {'John', 'Joe', 'Jerry'}.
0
1
Updated 2021-05-22
Tags
Python Programming Language
Data Science