第 2 步:让我们在main()中调用我们的新函数!我们将使用它向用户提出我们的第一个问题。

  • ,将Call Parameters Into Variable拖到main()的内部和底部。
  • my_function更改为ask_user_question
  • 然后,将 my_var 更改为my_var ,将warm_blooded my_parameter1sprite
  • 最后,将my_parameter2更改为"Is your animal warm blooded?" .

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)