Python Notes and Examples
 

Math

import math
math.pi # => 3.14159...

A note about exponents and operator precedence: from high to low, it goes: exponent (**), unary minus, then multiplication/division. When in doubt, use parentheses.