警告:这个程序有一个错误,这意味着我们需要修复它!

规则#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)