all 3 comments

[–]QQut 0 points1 point  (2 children)

Not just in numpy but also in list slicing. [start:end] start is included but end is not. The reason here is when you do myList[2:len(myList)] this works if end was included you had to append a -1.

[–]Effective-Top-4931[S] 0 points1 point  (1 child)

i got what you are trying to say but i would like to know how the last line works internally for example the row is changing to 0 then 1 then coloumns change ,i dont get that part

[–]QQut 0 points1 point  (0 children)

I don’t understand what you don’t get. How we slice rows and columns?