STEP 11: Another way to add items to a list is to use the append command!

  • In LOGIC, click and drag out Append.
  • Drop it under .Display() but before the loop.
  • Change the variable name before .append() from my_list to pet_list.
  • Replace my_var in .append() with the string "kitten".

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)