Applying workshop eligibility rules

A robotics workshop uses these Python sets of participant IDs:


Python
registered = {301, 302, 304, 307, 309, 311}
trained = {302, 304, 306, 309, 311, 315}
blocked = {304, 315}


A participant is ready to enter only if registered, trained, and absent from blocked. Determine the number of ready participants and the number of registered participants missing training, regardless of blocking status. Enter both counts as integers, to zero decimal places. Do not modify the input sets.

Your answers

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Set Data Structure Questions: