Session04 Tasks

Task 1 - Dictionaries and Sets
Task 2 - Trigrams
Task 3 - Wrapper Function
Task 4 - Mailroom Madness
This if statement is really hurting you. Consider what this line does and how you could use it to speed up your code:
trigram.setdefault(key,[value]).append(value)