Math
import math
# => 3.14159... math.pi
A note about exponents and operator
precedence: from high to low, it goes: exponent (**
),
unary minus, then multiplication/division. When in doubt, use
parentheses.
import math
# => 3.14159... math.pi
A note about exponents and operator
precedence: from high to low, it goes: exponent (**
),
unary minus, then multiplication/division. When in doubt, use
parentheses.