Skip to content

Commit 52b8e5c

Browse files
committed
Fix comment issue2
1 parent 1653325 commit 52b8e5c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

chapters/monte_carlo/code/python/monte_carlo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ def monte_carlo(n_samples):
2020
if(in_circle(x, y, radius)):
2121
in_circle_count += 1
2222

23-
# Since we've generated points on in upper left quadrant ([0,1], [0,1])
24-
# We need to mulply the number of points by 4
23+
# Since we've generated points in upper left quadrant ([0,1], [0,1])
24+
# We need to multiply the number of points by 4
2525
pi_estimate = 4 * in_circle_count / (n_samples * radius * radius)
2626

2727
return pi_estimate

0 commit comments

Comments
 (0)