Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Using sets to compute unique elements
Set operations
8. Set operations – exercise
Simulating machines


Great! Now it's time for you to use a few set operations in one exercise!


The sports hall is rented by basketball and volleyball players who regularly play there. Players buy passes each month. There are three monthly passes available: volleyball passes that cost $50 per person, basketball passes that cost $45 per person, and passes for those who do both sports, which cost $60 per person.

We have two sets: a set of basketball players (basketball_players) and a set of volleyball players (volleyball_players). Calculate how much money will the sports hall earn in a month. Print the result.

Stuck? Here's a hint!

Try using set intersection once and set difference twice.