def sharedPrefix(args):
    i = 0
    while i < min(map(len, args)):
        if len(set(map(operator.itemgetter(i), args))) != 1:
            break
        i += 1
    return args[0][:i]
Find the shared prefix between the strings.
dataset/ETHPy150Open OpenBazaar/OpenBazaar-Server/dht/utils.py/sharedPrefix