>>> ln(5,3) 1.6100704732402846 >>> ln(5,8) 1.609437882900238 >>> from math import log >>> log(5) 1.6094379124341003