STEP 6: Next we will ask why the user uses the website. According to our algorithm, we'll then need the first letters!

  • From GRAPHICS and , drop Ask at the bottom of your program.
  • Change the input variable name to purpose and the string to "What do you use this website for?"

Remember, all user input is a string! purpose is a string variable storing whatever text the user enters.

Indexing works with strings as well as lists! In this lesson we will use indexing with strings to build our password.

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)