biuild as array with custom size in pyton code example Example: create array with unknown size in python a = np.array([]) for x in y: a = np.append(a, x)