class coord(object):

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

def __add__(self, c):
    return coord(self.x + c.x, self.y + c.y)

def __sub__(self, c):
    return coord(self.x - c.x, self.y - c.y)

def __eq__(self, c):
    return self.x == c.x and self.y == c.y

def t(self):
    return self.x, self.y
Adding Values From Tuples of Same Length