Step 4: Define list_of_words function
- This function takes a list of words,
read, as an argument - Creates a new empty list,
words_list. - Loops over each item in
readand adds to new list. - 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.