M
M
Mike Evstropov2016-01-15 11:44:54
Python
Mike Evstropov, 2016-01-15 11:44:54

How to assign an anonymous function to a variable?

What do anonymous functions generally look like in Python?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2016-01-15
@Aroused

>>> fn1 = lambda n1, n2: n1+n2
>>> fn1(2, 4)
100500

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question