STEP 2: We'll use these float values to create random coins and fill our piggy bank. We need a new list to store all the coins we create.

  • From drag out Empty List and change its variable name to coins.

We will randomly pick coin values from the options in coin_values and store those coin values in this new empty list named coins.

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)