Python Reading
Key Ideas
- Be able to use the math module to solve problems.
- Be able to use the turtle module to solve problems.
- Be able to use the random module to solve problems.
- Be able to figure out how to use other modules when needed.
Active Learning
- Take a look at montecarol_pi.py and make sure that you understand it fully.
- Add appropriate comments to estimate_pi()
- Is estimate_pi() a fruitful or non-fruitful function? Why?
- Is main() a fruitful or non-fruitful function? Why?
- Play around with the program. How accurate can you get pi to be?
- What's the tradeoff with high accuracy in the estimation of pi? Why?