NESTING: Conditionals can be used inside of other conditionals! This process is called nesting.

Nesting often requires indenting code twice. Make sure to keep track of your indentation levels.

  • Click Run and answer the questions. There's no error message, but clearly something isn't right.
  • Fix the indentation so that the program runs correctly.

TIP: Highlight code then press Tab on your keyboard to indent code together or Shift+Tab to unindent together.

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)