Avatar ·

Creation of a N-dimensional array of length n

📁 список, python, вопрос, пример

Can I create N -dimensional array? If so, how to realize it? If the matrix is ​​a “list of lists”, then it will look something like this:

  [[...]], [[...] ...]]     

, or so that it is more clear, like it is more clear, like it is more clear. n of the invested segments, the picture below,

  (A1 [...] ...] B1, a2_m [...] ...] b2_m, ...)     

and how to realize it in the code? If we say, I need to introduce n from the keyboard. Thank you very much!