Tracing kiosk updates

A library kiosk tracks distinct visitor IDs using the Python code below. After every statement executes, how many distinct visitor IDs remain in seen? Enter the number of IDs as an integer, to zero decimal places.


Python
seen = {21, 24, 21, 28, 31, 24}
seen.add(28)
seen.discard(24)
seen.add(35)
seen.discard(99)

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: