Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

join two set in python

set1 = {1, 4, 5, 6}
set2 = {1, 2, 3}

set3 = set1.union(set2)
print(set3)
 
PREVIOUS NEXT
Tagged: #join #set #python
ADD COMMENT
Topic
Name
5+4 =