规则 2:变量名称中不能有空格。

  • 点击 运行 并读取弹出的错误信息来调试程序。
  • num siblings不是一个正确的变量名称。将其更改为 num_siblings,让精灵向你介绍他的兄弟姐妹。

使用下划线_而不是空格。通过点击SHIFT和破折号-创建下划线。

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
  • 提交作品
  • 下个活动
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)