Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

#Combine two sets on python with for loop

#Combine two sets on python with for loop

set_A= {"Apple", "Orange", "coconut"}
set_B= {"Green","Blue", "Yellow"}

set_A.update(set_B)


for x in set_A:
    print(x)
 
PREVIOUS NEXT
Tagged: #sets #python #loop
ADD COMMENT
Topic
Name
5+6 =