Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

set in python

myNewSet = set()

myNewSet.add("what have you done")
myNewSet.add("to earn your place")
myNewSet.add("in this crowded world?")


"what have you done" in myNewSet		# ->	true
myNewSet.remove("to earn your place")
# ->	 myNewSet = {"what have you done", "in this crowded world?"}
 
PREVIOUS NEXT
Tagged: #set #python
ADD COMMENT
Topic
Name
6+7 =