Python‎ > ‎map‎ > ‎

map.__le__()


Definition
The function and iterable value is large and equal to value.

Syntax
map.__le__()

Parameters
Function and iterable

Examples
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