第 5 步:我们想调用程序底部的所有函数,以便我们以后可以轻松地重新排序它们。

  • 并拖出Define Function
  • def flip():函数定义之后和函数调用flip()之前删除新函数。
  • 将新函数命名为headstand() 。确保它没有缩进并嵌套在def flip():块中!
  • 在图形中,从drop Flip Up Downheadstand()函数内缩进。

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)