# What is typeError?

**URL:** <https://forum.codewithmosh.com/t/what-is-typeerror/8174>\
**Category:** Python\
**Created:** [October 27, 2021, 11:56am UTC](https://forum.codewithmosh.com/t/what-is-typeerror/8174 "2021-10-27T11:56:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lagajaga2021](https://avatars.discourse-cdn.com/v4/letter/l/a183cd/32.png) [@lagajaga2021](https://forum.codewithmosh.com/u/lagajaga2021)\
**Post date:** [October 27, 2021, 11:56am UTC](https://forum.codewithmosh.com/t/what-is-typeerror/8174/1 "2021-10-27T11:56:20Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Paul](https://avatars.discourse-cdn.com/v4/letter/p/bbe5ce/32.png) [@Paul](https://forum.codewithmosh.com/u/Paul)\
**Post date:** [October 27, 2021, 4:09pm UTC](https://forum.codewithmosh.com/t/what-is-typeerror/8174/2 "2021-10-27T16:09:11Z")

</div>

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:

```auto
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.
