What is typeError?

T

its showing in terminal output of python programming as I take point as a class.
File “e:\python\debasish.py”, line 10, in
point = Point(1, 2)
TypeError: Point() takes no arguments.

So what is typeError.

I assume you have a class defined as class Point: somewhere and now you are instantiating it through the point = Point(1,2) call. For the call to work you would need at least the following implemented as constructor:

class Point:

    def __init__(self, x, y):
        self.x = x
        self.y = y

Without this, you will not be able to pass parameters to the constructor.