Exercies from the Programming Pearls book, written in IPython Notebook