Skip to content

Commit 97efcfc

Browse files
UP solution 2
1 parent 32e27a0 commit 97efcfc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

numpy_questions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ def max_index(X):
4545
i = 0
4646
j = 0
4747
max_local = X[0, 0]
48-
for k in range(X.shape[0]+1):
49-
for m in range(X.shape[1]+1):
48+
for k in range(X.shape[0]):
49+
for m in range(X.shape[1]):
5050
if X[k, m] > max_local:
5151
max_local = X[k, m]
5252
i = k

0 commit comments

Comments
 (0)