Skip to content

Commit a1287b7

Browse files
committed
final version
1 parent 9c303e1 commit a1287b7

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
@@ -76,5 +76,5 @@ def wallis_product(n_terms):
7676
raise ValueError("n_terms must be a positive integer.")
7777
if n_terms > 0:
7878
for i in range(1, n_terms + 1):
79-
pi *= (4 * i ** 2) / (4 * i ** 2 - 1)
80-
return pi*2
79+
pi *= (4 * i ** 2) / (4 * i ** 2 - 1)
80+
return pi*2

0 commit comments

Comments
 (0)