how to remove the last column in row from 2D list in python code example Example: python array delete last column b = np.delete(a, -1, axis=1)