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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.