STEP 17: Let's tell the player how many coins of a specific value there are every time they guess wrong.

  • Click LOGIC, go to , and drag out Get Count so that it is indented inside the else-block.
  • Change the variable from my_var to coin_amount.
  • Assign count() to the coins list by changing my_list to coins.
  • Change my_param to value to count how often that coin value is in the coins list.

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)