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/
.
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.
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 and right turns are clockwise. Arguments in square brackets are optional.
The following table lists commonly used methods of the Screen
class (in the turtle
module). Arguments in square brackets are optional.
The following table lists commonly used functions in the matplotlib.pyplot
module. The parameters in square brackets are optional. For a complete reference, see http://matplotlib.org/api/pyplot_summary.html
.
The following table lists commonly used functions in the random
module.
The following table lists commonly used methods of the str
class. Optional parameters are denoted in square brackets.
The following table lists commonly used methods of the list
class and three list functions from the random
module. Optional parameters are in square brackets.
The module image.py
which contains the Image
class is available on the book web site. The first table lists the functions in the image
module.
The following table lists commonly used special methods that may be overridden in new classes.
18.227.26.217