STEP 8: Now we'll loop through our sample_space list to count the number of times each color appears!
Remember, when we loop through a list, the program does the same actions on each value in the list!
- In LOGIC, click on . Drag out Loop through List. Change the list name to sample_space.
- Click on . Drag Get Count into your new loop. Change the name before the = to freq.
- Change the list name to outcome_list. Change the argument inside .count() to value.
To navigate the page using the TAB key, first press ESC to exit the code editor.