第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)