Try it on paper first. A hint, the key idea and the worked solution are here when you need them.
How many different students are there in the two clubs together, and who are they?
The two clubs are kept as sets:
The union A | B gives everything in either set, with no repeats.
Have you tried it?
Work it out on paper first. It is fine to get stuck or make a mistake: that is how we learn. When you are ready, compare your working with the solution.
The union cricket | chess keeps every name once: ['Asha', 'Kabir', 'Meera', 'Ravi'].
There are 4 students. (Three in each club makes six names, but Ravi and Meera are counted in both, so we count them once: .)
Log in to join the discussion.
Loading…