Advanced python code examples for beginners