警告:这个程序有一个错误,这意味着我们需要修复它!

规则:我们不能将stringsfloats加在一起。为了解决这个问题,我们必须将float转换为"string"

  • 点击运行并阅读错误消息。
  • 在 LOGIC 中,转到并在学生的第一个说命令之前拖动Convert to String
  • 确保将str()命令中的变量从my_varanswer

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)