Skip to content

Commit 32e27a0

Browse files
UP solution 2
1 parent cea4f04 commit 32e27a0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

numpy_questions.py

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

5656

5757
def wallis_product(n_terms):

0 commit comments

Comments
 (0)