Code snippets made while learning Python