Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

#Combine two sets on python: 2nd way.(Union)

#Combine two sets on python: 2nd way.(Union)

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

set_C= set_A.union(set_B)


for x in set_C:
    print(x )
Source by www.freecodecamp.org #
 
PREVIOUS NEXT
Tagged: #sets
ADD COMMENT
Topic
Name
5+3 =