STEP 19: Let's add the cherry on top if the user answers "yes."

  • Click on LOGIC and go to . Drag another if into the bottom of the elif statement
  • Make sure it's indented twice and change choice to cherry.
  • Go to and drag Function Call with Parameter inside the if statement, indented 3 times!
  • Rename the function to add_cherry() and change the parameter to scoops.

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)