第5步:把所有的问题放在一个列表中,可以稍后再循环一遍。

变量前后没有引号,但是在列表中仍然需要用逗号分隔。

  • 点击 ,并拖出 List of Strings
  • 将列表名称更改为 quiz
  • 将列表中的字符串更改为我们的变量名称 ques_1ques_2ques_3ques_4ques_5


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)