We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 521b1c0 + 8ea76d1 commit 836eab7Copy full SHA for 836eab7
1 file changed
source/exercises100.ktx
@@ -37,6 +37,9 @@ hint: size, itemsize
37
Z = np.zeros((10,10))
38
print("%d bytes" % (Z.size * Z.itemsize))
39
40
+# Simpler alternative
41
+print("%d bytes" % Z.nbytes)
42
+
43
< q5
44
How to get the documentation of the numpy add function from the command line? (★☆☆)
45
0 commit comments