in Python by
Q:
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.

▼ Show 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.

Python
Learn More with Madanswer

Related questions

+2 votes
asked Jan 21 in C Plus Plus by SakshiSharma
...