Skip to content

Commit 406c0f6

Browse files
committed
Reformat a code block
1 parent 246a7a7 commit 406c0f6

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lectures/python_by_example.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ The directory can be different based on the system of the machine and the versio
146146

147147
You can check the location of your `__init__.py` for NumPy in python by running the code:
148148

149-
```{code-cell} ipython
149+
```{code-block} ipython
150150
:class: no-execute
151151
152152
import numpy as np
@@ -735,11 +735,11 @@ n = 1000000 # sample size for Monte Carlo simulation
735735
count = 0
736736
for i in range(n):
737737
738-
# drawing random positions on in the square
738+
# drawing random positions on the square
739739
u, v = np.random.uniform(), np.random.uniform()
740740
741741
# check whether the point falls within the boundary
742-
# of the semi-circle located at (0.5,0.5)
742+
# of the semi-circle centred at (0.5,0.5)
743743
d = np.sqrt((u - 0.5)**2 + (v - 0.5)**2)
744744
745745
# if it falls within the inscribed semi-circle,

0 commit comments

Comments
 (0)