+ 1
3D array possible in Python
if possible then how?
6 Réponses
+ 4
list = [1,[2[3]],4]
+ 3
It's simply index access of nested list:
list = [ [ 1, 2 ], [ 3, 4 ], [ 5, 6 ] ]
print( list[0] ) # [ 1, 2 ]
print( list[0][0] ) # 1
+ 3
list[1][1][0] will output 3 : the innermost value in the array
+ 2
I answered for the principle of nested arrays ^^ ( without dimension limit: works same way for 2, 3, 4... how much dimension you want )
0
how to access??!
0
I asked for 3d array not 2d!!!😐😣😣😣😣