GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — daily_coding_problem/problems/14/problem_14.py at master · ihossai4/daily_coding_problem Expand file tree/ Copy pathproblem_14.pyMore file actions 19 lines (15 loc) · 419 Bytes / Copy pathproblem_14.pyFile metadata and controls19 lines (15 loc) · 419 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 def coding_problem_14(): """ The area of a circle is defined as $\pi r^2$. Estimate $\pi$ to 3 decimal places using a Monte Carlo method. Example: >>> import math >>> import random >>> random.seed(0xBEEF) >>> pi_approx = coding_problem_14() >>> abs(math.pi - pi_approx) < 1e-2 True """ pass if __name__ == '__main__': import doctest doctest.testmod(verbose=True) |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |