Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

How to Remove Items in a Set in Python Using the remove() Method

nameSet = {"John", "Jane", "Doe"}

nameSet.remove("Jane")

print(nameSet)
# {'John', 'Doe'}
Source by www.freecodecamp.org #
 
PREVIOUS NEXT
Tagged: #How #Remove #Items #Set #Python #Using #Method
ADD COMMENT
Topic
Name
4+2 =