15 步:是时候调用和构建divide()函数了!

  • 在代码的最底部不缩进elif
  • 测试变量choice更改为operation ,将测试值"yes"更改为"d"
  • 在 if 块中删除Function Call并将函数名称更改为divide()

运行代码并在弹出窗口中输入d 。我们需要在divide()函数中添加代码来让事情发生!

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)