Writing Structured Programs
By now you will have a sense of the capabilities of the Python programming language for processing natural language. However, if you’re new to Python or to programming, you may still be wrestling with Python and not feel like you are in full control yet. In this chapter we’ll address the following questions:
- How can you write well-structured, readable programs that you and others will be able to reuse easily?
- How do the fundamental building blocks work, such as loops, functions, and assignment?
- What are some of the pitfalls with Python programming, and how can you avoid them?