APPENDIX B

Python library reference

THE following tables provide a convenient reference for the most common Python functions and methods used in this book. You can find a complete reference for the Python standard library at https://docs.python.org/3/library/.

B.1 MATH MODULE

The following table lists commonly used functions and constants in the math module. The variable name x represents a generic numerical argument. Arguments in square brackets are optional.

B.2 TURTLE METHODS

The following table lists commonly used methods of the Turtle class (in the turtle module). The following descriptions assume default settings: angles are in degrees ...

Get Discovering Computer Science 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.