WARNING: This program has a bug, which means we need to fix it! This program has a logic error.

RULE: Your sample space and theoretical probability lists should have the same number of items.

  • Click Run and notice how your spinner only has three colors when it should have four.
  • Add .25 to the end of your theor_prob list, so your spinner shows four colors.

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)