STEP 2: We will create all the questions as string variables, then store them in a list to loop through later!

Make sure to type the question and all four answer options in one string.

  • Click LOGIC, go to and add String Variable. Change the variable name to ques_1
  • Change the string to "Where is your favorite place to be? a) forest b) space c) sports field d) castle"


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
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)