Python‎ > ‎map‎ > ‎

map.__gt__()


Definition
The map(function, iterable) returns is greater than value.

Syntax
map.__gt__()

Parameters
function and iterable

Examples
if min(map(lambda(decimal,decimal)).__gt__()
The method returns with the minimum value in the sets equation set1/set2*set2 is greater than 2. 
from decimal import*
set1={Decimal(-1355).adjusted(),Decimal(-233.321).copy_negate(), Decimal(-23.99).exp()}
set2={ Decimal(2.0).fma(3,7),Decimal(1.1).log10()}
if min(map(lambda a,b: a/b*b, set1, set2)).__gt__(2):
        print("Return is greater than 2.")
else:
        print("Not within parameters")

>>> 
Return is greater than 2.
>>>       


if (map(lambda function, string).__sizeof__.__gt__()
The method returns that a string size is greater than 22.
 str="python centre research"
if (map(lambda x: x, str)).__sizeof__().__gt__(22):
    print(str.__str__())
else:
    print("The string bytes size is greater than 22.")

>>> 
python centre research
>>> 


Comments