DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR TYPESCRIPT
count number of elements in multi-dimensional array python
import
numpy
as
np size
=
1
for
dim
in
np
.
shape
(
a
)
:
size
*=
dim
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#count
#number
#elements
#array
#python
ADD COMMENT
Topic
COMMENT
Name
8+9 =
Submit