About this question
I want to define a two-dimensional array without an initialized length like this:
Matrix = [][]
but it does not work...
I've tried the code below, but not working:
Matrix = [5][5]
Error:
Traceback ...
IndexError: list index out of range
How python define 2d array ? What’s wrong please suggest.