A quick few snippets of code today -- solving how to compactly and elegantly generate n-grams from your favorite iterable. For starters, let's talk about generating all bigrams from a python list (or anything we can iterate over). We'll write it generally so it can work over lists, strings, or whatever else you care to make iterable. Finally, I'll show the more general extension at the end. The ob