Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

clear all value in set on python

#clear all value to set in python

set_A= {"Apple", "Orange", "coconut"}


set_A.add("pineapple")
set_A.remove("Apple")
set_A.clear()

for x in set_A:
    print(x)
 
PREVIOUS NEXT
Tagged: #clear #set #python
ADD COMMENT
Topic
Name
1+5 =