DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
How to Empty a Set in Python Using the clear() Method
nameSet = {"John", "Jane", "Doe"} nameSet.clear() print(nameSet) # set()
Source by www.freecodecamp.org #
PREVIOUS
NEXT
Tagged:
#How
#Empty
#Set
#Python
#Using
#Method
ADD COMMENT
Topic
COMMENT
Name
5+9 =
Submit