STEP 8: Let's print our new variable to see its value! It should be a list of strings we can use to build a password.

  • In LOGIC from drag out Print Variable to the bottom of your program.
  • Change my_var to purpose_words_list.
  • Open the console and check what printed. It should be the sentence you entered for purpose, as a list!

print() prints the value in parentheses to the console. Printing a variable prints the value stored in the variable.

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)