Danger, Will Robinson!


please can anybody explain me print board[2][3] in detail.


Perhaps detailed questions are in order instead (if you want something explained, move as much effort as possible from the answer, to the question)


is this an array???


Is what an array?
What’s an array? Do you mean a list? Or some other object?
Anyway, it’s a print statement, no value is being defined there, so the answer is probably no, it’s not an array, it’s not a value at all.


Board is a list of lists,we are printing the value in the position [2][3],this is the same as print the value in the index 3 of the third list (index 2 in the ‘big’ list)


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.