Session04 - trigrams.py finished

Since you used this code more than once I'd recommend placing it inside a function so that you stay DRY.