Python notes and code snippets