__init__ constructor

On this page

init

Initializes a new instance of the Point class.

def __init__(self, x, y):
    ...
Parameter Type Description
x int The x-coordinate of the point.
y int The y-coordinate of the point.

See Also

On this page