Skip to content

Commit 5d583bf

Browse files
UP solution 2
1 parent 97efcfc commit 5d583bf

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
@@ -38,7 +38,7 @@ def max_index(X):
3838
If the input is not a numpy array or
3939
if the shape is not 2D.
4040
"""
41-
if "numpy" in str(type(X)):
41+
if "numpy" not in str(type(X)):
4242
raise ValueError('None')
4343
if X.ndim != 2:
4444
raise ValueError('Not in 2D')
@@ -76,4 +76,4 @@ def wallis_product(n_terms):
7676
resultat = 2
7777
for k in range(n_terms):
7878
resultat = resultat*(4*((k+1)**2)/((4*((k+1)**2)-1)))
79-
return resultat
79+
return resultat

0 commit comments

Comments
 (0)