Python‎ > ‎math‎ > ‎

math.log10()

http://www.adilwaseem.com/

Introduction
Return base value of 10 log of x.

Syntax
math.log10(x)

Parameters
x=number

Examples 
The returns is:
 >>> import math
>>> math.log10(23)
1.3617278360175928
>>> math.log10(11)
1.0413926851582251
>>>

if statement sum(map(lambda).__le__()
The lambda returns with equation computation.
import math
x=[math.log(2,10),math.log10(22), math.log2(2)]
y=[math.trunc(2.1)]
if sum(map(lambda a,b: a+b/2, x,y)).__le__(y):
    print("The return is large or equal to 2.0")
else:
    print("The value does not meet the criteria")

>>> 
The return is large or equal to 2.0
>>>

Comments