STEP 4: Ed wants to know how many scoops we want, so we need to make sure the user enters an actual number.

  • In LOGIC go to and drag While True into the bottom of main().
  • Go to and drag Try Except into the loop. Make sure it's indented twice!
  • Click Run, answer the questions, and check the Console output.

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)