Skip to content

Commit dc0d515

Browse files
committed
new version
1 parent dbd30e2 commit dc0d515

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
@@ -40,7 +40,7 @@ def max_index(X):
4040
i = 0
4141
j = 0
4242

43-
# Validate input is a numpy array
43+
# Validate input is a numpy array
4444
if not isinstance(X, np.ndarray):
4545
raise ValueError("Input must be a numpy array.")
4646
# Validate input shape
@@ -79,4 +79,4 @@ def wallis_product(n_terms):
7979
for i in range(1, n_terms + 1):
8080
pi *= (4 * i ** 2) / (4 * i ** 2 - 1)
8181

82-
return pi*2
82+
return pi*2

0 commit comments

Comments
 (0)