There was an error while loading. Please reload this page.
1 parent c49c17f commit 5a26773Copy full SHA for 5a26773
1 file changed
maths/pi_monte_carlo_estimation.py
@@ -72,6 +72,7 @@ def estimate_pi(number_of_simulations: int, seed: int | None = None) -> float:
72
73
if __name__ == "__main__":
74
import doctest
75
+ from math import pi
76
77
doctest.testmod()
78
prompt = "Please enter the desired number of Monte Carlo simulations: "
0 commit comments