def Join(array, sep):
    s = ''
    for e in array:
        s += e + sep
    return s[:-len(sep)] if sep != '' else s