Inheritance error with Python
<p>I have the following code.py file:</p>

<pre><code>class Shape:
    def __init__(self, x, y):
        self.x = x
        self.y = y

    def move(self, delta_x, delta_y):
        self.x += delta_x
        self.y += delta_y

class Square(Shape):
    def __init__(self, side=1, x=0, y=0):
        super().__init__(x, y)
        self.side = side

class Circle(Shape):
    def __init__(self, rad=1, x=0, y=0):
        super().__init__(x, y)
        self.radius = rad
</code></pre>

<p>I'm running the code in the Python interpreter like this:</p>

<p><code>&gt;&gt;&gt; import code</code><br>
<code>&gt;&gt;&gt; c = code.Circle(1)</code></p>

<p>I'm getting this error:</p>

<pre><code>Traceback (most recent call last):&lt;br&gt;
...&lt;br&gt;
File "code.py", line 18, in __init__&lt;br&gt;
super().__init__(x, y)&lt;br&gt;
TypeError: super() takes at least 1 argument (0 given)&lt;br&gt;
</code></pre>

<p>I don't understand why I'm getting this error.  I'm specifying a rad value of 1 and I would  assume that since I didn't specify x and y values, Circle should be using the default values of x=0 and y=0 and passing them to Shape via the super() function.  What am I missing?</p>

<p>BTW, I'm using Python 2.7.1.</p>

<p>Thanks.</p>
