第6步:我们已经完成了功能!让我们再叫它三次,以询问有关该动物的其他三个问题。

  • ,将Call Parameters Into Variable中,在main().缩进三次
  • my_function所有三个实例更改为ask_user_question
  • 然后,将第一个my_var更改为has_scales第二个更改为eggs_in_water第三个更改为has_hair
  • my_parameter1所有三个实例更改为sprite my_parameter2"question"

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)