Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

How To Remove Elements From a Set using remove() function in python

mySet = {1, 2, 3}
mySet.remove(1)
print(mySet)


# Output:
# {2, 3}
Source by liu-111.medium.com #
 
PREVIOUS NEXT
Tagged: #How #To #Remove #Elements #From #Set #function #python
ADD COMMENT
Topic
Name
1+1 =