short snippets written while learning python