Small snippets that may be useful from ecercises as I learn Python