Some snippets of python code I generated in my efforts to practice.