STEP 15:左边的人跳舞;让对的人跳舞吧!

  • 从逻辑和,将Function Call with Parameter拖到程序底部。
  • 将函数名称更改为dance() ,将person3 my_var点击跑去看简笔画舞蹈!

列表person3被传递给dance()函数,函数中它被用作my_list 。然后将循环中的所有命令分配给列表中的每个精灵,一次一个!

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)