Merge pull request #242 from Gattocrucco/alt-sol-4
Alternative solution to exercise 4
This commit is contained in:
commit
836eab7578
@ -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? (★☆☆)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user