Step 4: Define list_of_words function

  1. This function takes a list of words, read, as an argument
  2. Creates a new empty list, words_list.
  3. Loops over each item in read and adds to new list.
  4. Returns the new list.
πŸ’‘ Hint

Use list method .append(…) to add an item to a list.

βœ… Code Runner

Define list_of_words function

Type or paste your code and run.