#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 )