Answers for "how to difference sets without using intersection function in python"

3

intersection between two sets python

x = {"apple", "banana", "cherry"}
y = {"google", "microsoft", "apple"}

z = x.intersection(y)
    
print(z)

# Output: {"apple"}
Posted by: Guest on November-07-2020

Code answers related to "how to difference sets without using intersection function in python"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language