This chapter introduced the following building blocks of programming and Python:
▶ Math methods.
▶ Random numbers.
▶ Boolean expressions using relational and logical operators.
▶ Selection statements using
▶ The accumulator pattern, which uses an accumulator variable that is continuously updated as part of an iteration. It is important to initialize the accumulator variable to an appropriate starting value.
compound Boolean expression
Monte Carlo simulation