Fixes black failures (#1742)

This commit is contained in:
onlinejudge95
2020-02-10 16:13:57 +05:30
committed by GitHub
parent 32ceec550f
commit 80718bd880
2 changed files with 5 additions and 2 deletions

View File

@ -4,6 +4,7 @@
from numpy import pi, sqrt
from random import uniform
def pi_estimator(iterations: int):
"""An implementation of the Monte Carlo method used to find pi.
1. Draw a 2x2 square centred at (0,0).
@ -15,7 +16,6 @@ def pi_estimator(iterations: int):
6. Print the estimated and numpy value of pi
"""
circle_dots = 0
# A local function to see if a dot lands in the circle.