Answers for "intersection between two sets python"

0

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 "intersection between two sets python"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language