Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

#Combine two sets on python with for loop: reverse way in one line with space

#Combine two sets on python with for loop: reverse way in one line with space

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

set_B.update(set_A)


for x in set_B:
    print(x , end=" ")
 
PREVIOUS NEXT
Tagged: #sets #python #reverse #line #space
ADD COMMENT
Topic
Name
3+5 =