STEP 12: Let's give the player multiple chances at guessing - one for every type of coin we have!

  • In LOGIC, click and drag out Loop through List.
  • In the loop creation line, change my_list to coin_values. This will make our loop run 4 times!
  • In GRAPHICS, click and drop Ask for Float inside the loop.
  • Assign .ask() to bank by changing the variable name before .ask() from sprite to bank.

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)