Updated question 37, keep previous solution for reference

This commit is contained in:
Francesco Terenzi
2021-04-09 10:50:11 +02:00
parent a7c84d5fed
commit 025845ff5c
5 changed files with 224 additions and 209 deletions

View File

@@ -451,6 +451,11 @@ Create a 5x5 matrix with row values ranging from 0 to 4 (★★☆)
hint: np.arange
< a37
Z = np.zeros((5,5))
Z += np.arange(5)
print(Z)
# without broadcasting
Z = np.tile(np.arange(0, 5), (5,1))
print(Z)