Answers for "3d aray python"

1

python 3d array

Explaination:
	import numpy as np

	np.zeros(the amount of arrays, amount of rows, the amount of colums)
---------------------------------------------------------------------
Usage:
	array_city = np.zeros((2, 3, 4))
	print(array_city)
---------------------------------------------------------------------
Results:
[
    [
      [0. 0. 0. 0.],
  	  [0. 0. 0. 0.],
      [0. 0. 0. 0.],
    ],
      
    [
      [0. 0. 0. 0.],
      [0. 0. 0. 0.],
      [0. 0. 0. 0.],
    ]
]
Posted by: Guest on February-24-2021

Python Answers by Framework

Browse Popular Code Answers by Language