Tutorial by Examples

A good way to visualize a 2d array is as a list of lists. Something like this: lst=[[1,2,3],[4,5,6],[7,8,9]] here the outer list lst has three things in it. each of those things is another list: The first one is: [1,2,3], the second one is: [4,5,6] and the third one is: [7,8,9]. You can access ...
This behaviour can be extended. Here is a 3-dimensional array: [[[111,112,113],[121,122,123],[131,132,133]],[[211,212,213],[221,222,223],[231,232,233]],[[311,312,313],[321,322,323],[331,332,333]]] As is probably obvious, this gets a bit hard to read. Use backslashes to break up the different dim...

Page 1 of 1