Remove from a List


The script below is supposed to remove all of the occurrences of “ABC" from the players list.

Find a list for which the script below will not remove all occurrences of ABC (such lists DO exist), and explain your findings:

  • When does the script not work?
  • Why is it not working?
  • Can you generalize what type of lists do not work with this script?
  • How might it be fixed?

The script is available here as a Scratch project.