It's good to know that. alt text. but also know that math.log takes an optional second argument which allows you to specify the base: In [22]: import math In [23]:.