Session06 - Python script for trigrams 

The variable 'words' here is certainly not the one you want. If someone else were to use your function and passed in 'list_of_words' then it would break. It works here, but it depends on global variables. This needs to be fixed.