def distance(x,y):
assert len(x) == len(y), "<STR_LIT>"<EOL>result = ()<EOL>sum = <NUM_LIT:0><EOL>for i in range(len(x)):<EOL><INDENT>result += (x[i] -y[i],)<EOL><DEDENT>for component in result:<EOL><INDENT>sum += component**<NUM_LIT:2><EOL><DEDENT>return math.sqrt(sum)<EOL>
[summary]
    HELPER-FUNCTION
    calculates the (eulidean) distance between vector x and y.

    Arguments:
        x {[tuple]} -- [vector]
        y {[tuple]} -- [vector]