+1 vote
in Python by
If you have two sets like this -> s1 = {1,2,3,4,5,6}, s2 = {5,6,7,8,9}. How would you find the common elements in these sets.

1 Answer

0 votes
by

You can use the intersection() function to find the common elements between the two sets:

We see that the common elements between the two sets are 5 & 6.

...