<jupyter_start><jupyter_text>lambdaaaa:<jupyter_code>def square(num):
    result=num **2
    return result
#normal expression
square(100)
#edited by lambda
def square(num): return num ** 2 #normal one liner
#lambda expression
square = lambda num : num ** 2
square(5)
# lambda expressions are used with map and filter
my_list=[1,2,3,4,5,6]
list(map(lambda num: num ** 2,my_list))
list(filter(lambda even:even%2==0,my_list))
names=['Aniket','Animesh','Neelesh']
list(map(lambda x: x[0],names))
list(map(lambda x:x[::-1],names))<jupyter_output><empty_output>
StarcoderdataJupyterStructuredCleanDedup