Part I. The Core Language

In this first section, we study the Python language itself. We call this part “The Core Language,” because our focus will be on the essentials of Python programming: its built-in types, statements, and tools for packaging program components. By the time you finish reading this section and working through its exercises, you’ll be ready to write scripts of your own.

We also use the word “Core” in the title on purpose, because this section isn’t an exhaustive treatment of every minute detail of the language. While we may finesse an obscurity or two along the way, the basics you’ll see here should help you make sense of the exceptions when they pop up.

Get Learning Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.