How this code
np.array([range(i, i + 3) for i in [2, 4, 6]])results in
Output:array([[2, 3, 4],
[4, 5, 6],
[6, 7, 8]])
Thanks