0
What does the dubled squarebrackets at line 10 do? How do they work?
3 Antworten
+ 3
It's a multidimensional array. In this case it's a 2D array. Each [] is referencing the index. In a 2D array, you can think of it as rows/columns or a coordinate system.
myArray[row][col]
+ 1
To access the element inside the list which is inside another list, first set of square brackets select the list the second set select the element
+ 1
Thx you two TurtleShell and Jakob Marley . Very helpfull!