파이썬 lambda, map
lambda 인자 : 표현식 x = lambda a : a + 10 print(x(5)) x = lambda a, b, c : a + b + c print(x(5, 6, 2)) map(function, iterables) def myfunc(n): return len(n) x = map(myfunc, ('apple', 'banana', 'cherry')) map(lambda x: x ** 2, range(5)) list(map(lambda x: x ** 2, range(5)))