STEP 15: So what if you want a sundae? We can't order both, so this will create a new branch in our program.

Branching is when a program follows separate functional paths according to different conditions.

  • Go to and drag elif into the bottom of main(). Change "no" to "sundae".
  • This is the sundae branch. Go to and drag Function Call inside the elif statement.
  • Change the function from my_function() to make_dish(). Now we can start making a sundae!

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)