def Join(array, separator=' '): s = '' for i in range(len(array)): s += str(array[i]) if i + 1 < len(array): s += str(separator) return s