STEP 10: Let's change the command that is inside the loop to fit our program.

    • Change the name of the variable to code_word.
    • Change the name of the variable being added to value.

    This loop adds each letter in the list together and stores them as a string in the variable code_word.

    If we passed "hello" to the function, code_word would now store the value: "ellohay".

    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)