第 13 步:是时候构建multiply()函数了!

  • 在程序的顶部找到def · multiply() : ¬ 。从函数中删除····传递· ¬
  • multiply()函数块中放置两个缩进的Ask for Float
  • 将两个.ask()命令中的字符串更改为"Enter a number."
  • 将第一个变量名从guess更改为num_1 ,将第二个变量名更改为num_2

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)