The slicing paet in the z[1:]

here when we are printing z[ 1, : ] =5
so 5 will comein the second or the first row , because in the video he’s saying that it is the first row and the second row is getting updated by 5.so what is it?

Hey @sankalparora5, z[1,:] = r will update second row, since it is zero based indexing. first row will be with 0 index. and second row with 1, and so on.

Hope this cleared your doubt.
Plz mark the doubt as resolved :blush:

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.