Python programming code examples for beginners