Skip to content

Commit 5a26773

Browse files
authored
Import pi from math module
1 parent c49c17f commit 5a26773

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

maths/pi_monte_carlo_estimation.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ def estimate_pi(number_of_simulations: int, seed: int | None = None) -> float:
7272

7373
if __name__ == "__main__":
7474
import doctest
75+
from math import pi
7576

7677
doctest.testmod()
7778
prompt = "Please enter the desired number of Monte Carlo simulations: "

0 commit comments

Comments
 (0)