code snippets in learning python