Just have a colors.txt file with data:
[(216, 172, 185), (222, 180, 190), (231, 191, 202), (237, 197, 206), (236, 194, 204), (227, 184, 194), (230, 188, 200), (232, 192, 203), (237, 199, 210), (245, 207, 218), (245, 207, 218)]
now just try to read this in python as an array
f = open("colors.txt", "r")
data = f.read()
data2 = np.append(data)
f.close()
now want to print first value but I have an error
print(data2[0])
TypeError: _append_dispatcher() missing 1 required positional argument: 'values'
np.appendas specified by its docs. Why are you using it here? What's it supposed to be doing?