STEP 15: As the loop runs, we'll want to add each value to a list to keep a record and keep them in order.

  • Click on . Drag out Append and drop it inside your loop.
  • Change the list variable name from my_list to expected_vals.
  • Change the variable argument in .append() from my_var to theor_value.

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)