STEP 13: Now let's set up the loop that will count through the list.

  • In LOGIC, click on . Drag out Loop through List. Change the list name to range_list.
  • Click on . Drag out Get Count. Drop it INSIDE your loop.
  • Change the list name in front of .count() to rolls and change the argument in parentheses to value.
  • Finally, change the variable to the left of the = sign from my_var to freq.

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)