# Lambda: 

n = 1
e = (lambda n: n+1)
print(type(e(n)))
print(e(n))


# Lambda y Expresiones
# exp1 if cond else exp2

option = 100

def options():
    if option > 50:
        r = option*10
    else:
        r = option*20
    return print(r)

# En version lambda xpresions.

r_lambda = (lambda option: option*10 if option> 50 else option*20)

options() # 1000
print(r_lambda)  # Retorna la funcín lambda en memoria <function <lambda> at 0x000001B07F662430>
print(r_lambda(option))# 1000




# Lambda: 

n = 1
e = (lambda n: n+1)
print(type(e(n)))
print(e(n))


# Lambda y Expresiones
# exp1 if cond else exp2

option = 100

def options():
    if option > 50:
        r = option*10
    else:
        r = option*20
    return print(r)

# En version lambda xpresions.

r_lambda = (lambda option: option*10 if option> 50 else option*20)

options() # 1000
print(r_lambda)  # Retorna la funcín lambda en memoria <function <lambda> at 0x000001B07F662430>
print(r_lambda(option))# 1000




# Lambda: # Lambda y Expresiones # exp1 if cond else exp2 # En version lambda xpresions. # 1000 # Retorna la funcín lambda en memoria <function <lambda> at 0x000001B07F662430> # 1000