y = np.array([[0.1, 0.3, 0.6], [0.3, 0.2, 0.5]])

print(y[range(0, 2),np.array([0, 2. ])])

Sir i am completely lost with this code

y = np.array([[0.1, 0.3, 0.6], [0.3, 0.2, 0.5]])

print(y[range(0, 2),np.array([0, 2. ])])

Sir i am completely lost with this code

Hi @

**anubhav.gupta62**

**uhm, I don’t know this syntax, though, I can say it’s somewhat same as:**

**y[0:2,0:2].**

**This means you are printing y[0][0],y[0][1],y[1][0],y[1][1].**