Answers for "#finding the similarity among two sets and 1 if statement"

0

#finding the similarity among two sets and 1 if statement

#finding the similarity among two sets and 1 if statement

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)
if "Green" in set_B:
    print("Hello Green Guy")
Posted by: Guest on February-24-2022

Code answers related to "#finding the similarity among two sets and 1 if statement"

Python Answers by Framework

Browse Popular Code Answers by Language