Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

#finding the similarity among two sets

#finding the similarity among two sets

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

set_C= set_A.intersection(set_B)


for x in set_C:
    print(x )
 
PREVIOUS NEXT
Tagged: #similarity #sets
ADD COMMENT
Topic
Name
3+4 =