Small python code blocks from codeacademy tutorials