Merge pull request #242 from Gattocrucco/alt-sol-4

Alternative solution to exercise 4
This commit is contained in:
Nicolas P. Rougier 2025-08-26 11:06:42 +02:00 committed by GitHub
commit 836eab7578
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -37,6 +37,9 @@ hint: size, itemsize
Z = np.zeros((10,10))
print("%d bytes" % (Z.size * Z.itemsize))
# Simpler alternative
print("%d bytes" % Z.nbytes)
< q5
How to get the documentation of the numpy add function from the command line? (★☆☆)