I assume by looking at the line the error is pointing at and fixing the problem?
Although the following looks weird:

So yeah, you are telling the list to grab the entry on index (0,1,2) - which is a tuple and thus a 3D coordinate. Hence it fails.

Also please look into the task and Numpy again.
By making an actual Matrix, you can utilize the .mean() with additional arguments to get the desired result.