Python Programming Codes For Dct And

Chapter 10: Staying in Control Chapter 11: Fun with Functions

Chapter 12: Building Applications with Modules and Packages

Chapter 13: Getting Classy

Chapter 14: Introducing New-Style Classes

Chapter 15: Feeling Exceptional

Chapter 16: Tackling Some Advanced Features

The 5th Wave By Rich Tennant

"We're here to clean the code." In this part...

This part covers Python's code blocks, the chunks of code that manipulate data and return results.

If you've ever seen a flow chart, you'll be comfortable with Chapter 10, which describes if statements and loops... loops... loops

Chapter 11 takes you inside the magic boxes called functions. You'll discover how to put stuff into them and how to get stuff out of them.

Modules and packages are the Lego blocks of Python programs. Chapter 12 shows you how to build and work with both module files, which store chunks of code that work together, and packages, which are directories that contain related modules.

Lucky Chapter 13 inducts you into the temple of object-oriented programming. Classes, like factories or templates, create other objects that do the actual work. After you read this chapter, you'll understand what it's like to be a capitalist baron who controls the means of production.

Classes are such an important concept that we couldn't get away with just one chapter about them. Python 2.5 introduced new-style classes. You don't have to use them, but if you want to, Chapter 14 is where they are.

What do you do when something weird happens in your Python program? Chapter 15 offers advice. Here, you find out how to anticipate and handle exceptions in your programs.

If you've devoured the rest of the chapters in this part and you're still hungry, turn to Chapter 16. Here, we introduce some advanced features of Python programming. Even if you don't want to use these features yourself yet, you'll appreciate being able to recognize them in other people's programs.

Was this article helpful?

0 0

Post a comment