Point constructor

init(self, x=0, y=0)

Creates a point with the specified coordinates. Float values are truncated to integers.

def __init__(self, x=0, y=0):
    ...
ParameterTypeDescription
xintThe horizontal position of the point.
yintThe vertical position of the point.

Exceptions

ExceptionDescription
TypeErrorA coordinate is not a number.

See Also