STEP 4: We'll want to treat our string as a list of individual elements. Convert String to List will do that for us!

For example, if we pass "hello" to the function, the list would look like this: ['h', 'e', 'l', 'l', 'o']

  • From , drag Convert String to List INSIDE the function.
  • Change the name of the list, before the = sign, to letters.
  • Change the variable parameter to word.

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)