Python index selection in a 3D list
Python index selection in a 3D list Question: I have the following 3D list: test = [[[(x,y,z) for x in range(0,5)] for y in range(5,8)] for z in range(0,4)] test[0].append([(0,5),(5,0)]) I want to select all the indices of the first dimension, the 0th index of the 2nd dimension and all the indices of the 3rd …