17 步:让我们完成divide()函数!

  • divide()函数内缩进Division
  • 将变量名从my_var更改为quotient 。将6更改为num_1 ,将2更改为num_2
  • 添加Say 。将字符串更改为"The quotient is " + str( quotient ) .
  • Drop Wait在函数内部,在 . say()命令。

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)