(*seqs)
return seqs[0][:i]
Return the subsequence that is a common start of sequences in ``seqs``.

    >>> from sympy.utilities.iterables import common_prefix
    >>> common_prefix(list(range(3)))
    [0, 1, 2]
    >>> common_prefix(list(range(3)), list(range(4)))
    [0, 1, 2]
    >>> common_prefix([1, 2, 3], [1, 2, 5])
    [1, 2]
    >>> common_prefix([1, 2, 3], [1, 3, 5])
    [1]
Return the subsequence that is a common start of sequences in ``seqs``.
Return the subsequence that is a common start of sequences in seqs .
def common_prefix(*seqs):
    """Return the subsequence that is a common start of sequences in ``seqs``.

    >>> from sympy.utilities.iterables import common_prefix
    >>> common_prefix(list(range(3)))
    [0, 1, 2]
    >>> common_prefix(list(range(3)), list(range(4)))
    [0, 1, 2]
    >>> common_prefix([1, 2, 3], [1, 2, 5])
    [1, 2]
    >>> common_prefix([1, 2, 3], [1, 3, 5])
    [1]
    """
    if any(not s for s in seqs):
        return []
    elif len(seqs) == 1:
        return seqs[0]
    i = 0
    for i in range(min(len(s) for s in seqs)):
        if not all(seqs[j][i] == seqs[0][i] for j in xrange(len(seqs))):
            break
    else:
        i += 1
    return seqs[0][:i]
def common_prefix ( * seqs ) : if any ( not s for s in seqs ) : return [ ] elif len ( seqs ) == 1 : return seqs [ 0 ] i = 0 for i in range ( min ( len ( s ) for s in seqs ) ) : if not all ( seqs [ j ] [ i ] == seqs [ 0 ] [ i ] for j in xrange ( len ( seqs ) ) ) : break else : i += 1 return seqs [ 0 ] [ : i ]