WARNING: This program has a syntax error, which means we need to fix it!

RULE #2: Variable names cannot have spaces in them.

  • Click Run and read the error message to debug the program.
  • num siblings is not a correct variable name. Change the variable name to num_siblings instead.

Use an underscore _ instead of a space. Create an underscore by clicking SHIFT and dash -.

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)