第 11 步:现在让我们构建一个函数来告诉我们精灵在木星上的权重!

  • .将Define Function with Parameter程序的底部。
  • 将函数名称从my_function()更改为 get_jupiter_weight() .
  • 函数参数变量my_var重命名为earth_weight
  • 在图形中,从Jupiter放入函数中。它前面应该有一个····

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)