Algorithms.py
def euclid():
    '''
    Return a function which calculates the Euclidean distance between two iterables (points). 
    If either of two arguments to the function are not iterable, each are put in its own list first. 

    :return: returns the Euclidean distance function
    '''
    seq = lambda x, y: zip(x, y) if all(isinstance(z, Iterable) for z in [x, y]) else zip([x], [y])
    euc = lambda x, y: sqrt(sum([(p[0] - p[1]) ** 2 for p in seq(x, y)]))
    return euc

    Return a function which calculates the Euclidean distance between two iterables (points). 
    If either of two arguments to the function are not iterable, each are put in its own list first. 

    :return: returns the Euclidean distance function
    
Return a function which calculates the Euclidean distance between two iterables (points).
If either of two arguments to the function are not iterable, each are put in its own list first.
Return a function which calculates the Euclidean distance between two iterables ( points ) . If either of two arguments to the function are not iterable each are put in its own list first .
def euclid():
    seq = lambda x, y: zip(x, y) if all(isinstance(z, Iterable) for z in [x, y]) else zip([x], [y])
    euc = lambda x, y: sqrt(sum([(p[0] - p[1]) ** 2 for p in seq(x, y)]))
    return euc
def euclid ( ) : seq = lambda x , y : zip ( x , y ) if all ( isinstance ( z , Iterable ) for z in [ x , y ] ) else zip ( [ x ] , [ y ] ) euc = lambda x , y : sqrt ( sum ( [ ( p [ 0 ] - p [ 1 ] ) ** 2 for p in seq ( x , y ) ] ) ) return euc
Return a function which calculates the Euclidean distance between two iterables (points).
Return a function which calculates the Euclidean distance between two iterables ( points ) .
'''
    Return a function which calculates the Euclidean distance between two iterables (points). 
    If either of two arguments to the function are not iterable, each are put in its own list first. 

    :return: returns the Euclidean distance function
    '''
returns the Euclidean distance function
returns the Euclidean distance function