The row index , 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?