Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

#add,remove and clear all values on set in python

#add,remove and clear all values on 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 #values #set #python
ADD COMMENT
Topic
Name
8+9 =