Chapter Opener Photo

APPENDIX B

Python Quick Reference

This quick reference provides an overview of the primary Python constructs used in this text. It is not a detailed reference but rather a compendium of tables and syntax. These are described in more detail within the chapters. In addition, more detailed documentation can be found at https://docs.python.org/

B.1 Python Reserved Words

The words shown in TABLE B.1 are reserved by Python. You should not use any of these words as identifiers in your program. If you do, you will get a SyntaxError.

TABLE B.1 Python’s Reserved Words

B.2 Numeric Data Types

Python has three numeric data types: ...

Get Python Programming in Context, 3rd Edition 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.