第10步:我们来计算其他选项的回答次数。出现次数最多的选择将提供测验结果。

  • 三个 Get Count 指令拖到程序底部。
  • 根据其存储的字母数量,将新变量命名为: b_numc_num ,和 d_num
  • 将所有指令中的列表名称更改为 user_choices
  • 将每个参数更改为一个字母: "b""c",和"d"

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)