STEP 13: Sophia is told a pig is too big for a house pet. Let's remove it from the list!

  • Click drag out Remove, and drop it under .update() but before the loop.
  • Change the list name before .remove() from my_list to pet_list.
  • Replace my_var in .remove() with "pig".

Run your code: notice that the pig sprite is not created! Why does it still appear in the display?

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)