adding two value in a class in python
<p>I am knew at this and not sure the exact syntax to use to add x,y in python using this class definition</p>

<pre><code>class Add(values):
    def __init__(self, x, y):
        values.__init__(self, [x, y])

    def forward(self):

        return self.values[x] + values[1]
</code></pre>

<p>I am not able to figure out how to access x,y to add them together. I have tried all the possibilities that I can think of. Thank you.</p>