I'm currently working on a python project with bunch of nested for loops and an n-dimensional array, called lst. For the first for loop I want to print out lst[i], for the second for loop I want to print out lst[i][j]. This continues until I reach the nth dimension. How do I go about this without manually adding brackets?
what I have right now looks something like this...
for i in lst:
print(lst[i])
for j in lst:
print(lst[i][j])
for k in lst:
print(lst[i][j][k])
.
.
.
Thanks for your help!