STEP 9: Now we have a list of the results of ten random dice rolls. Let's display our data!

  • We'll first want to create a table. To do so, we need to know how many times we rolled a number between 1 and 6.
  • In SUBJECT, click on . Drag out Range List. Drop it OUTSIDE your loop.
  • Add a comma and a 6 to the end of the list, so it looks like this: range_list·= [·1,·2,·3,·4,·5,·6]¬

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)