第 4 步:让我们创建一个函数来计算霸王龙和小猫在月球上的重量!

  • 并拖出Define Function with Parameter
  • 将函数名称从my_function()更改为get_moon_weight()
  • 函数参数变量my_var重命名为earth_weight
  • 在图形中,从Moon放入函数中。它前面应该有一个····

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)