STEP 4: We will use the user input to start generating our password! Let's start with the first letter of the website.

  • In LOGIC from add Get Value at Index.
  • Change my_var to password, and change my_list to website.
  • Add Update Display and change the variable argument to password.

Indexes work with strings as well as lists! password is now equal to the first letter of the string the user entered!

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)