You have reached the official home of the examples package of this book. It contains two items:
⇦ View and save
⇦ Fetch and unzip
The buttons above provide access to the book's captioned examples. You can either browse individual examples online with the first button, or copy all the examples to your own device with the second. Individual views have save links at top of page, and the second button's zipfile includes all examples and can be unzipped in any unzip tool.
Whether online or unzipped, the examples content is organized as an LP6E root folder with one subfolder for each chapter's examples. Per the book, you should generally work in the subfolder of the chapter you are currently studying so imports run without path settings.
All example files are formatted using Unix end-of-line markers but should display well in text tools on Windows too.
Emedia—the ebook and online versions—also support copy/paste of both captioned examples and interactive code demoed in a REPL. Code copied this way loses its emojis and the PDF ebook discards code indentation, but both the ePub ebook and online version may retain indentation. As noted in the book, though, typing some code examples is a recommended way to get comfortable with syntax. You can't code without writing code, after all.
This package's content was last updated February 25, 2025. For more resources for this book, see its online chapters and main page