SyntaxFix
Write A Post
Hire A Developer
Questions
In python 3 or above, math class has the following functions
import math math.log2(x) math.log10(x) math.log1p(x)
or you can generally use math.log(x, base) for any base you want.
math.log(x, base)