• JavaScriptPHPHTMLCssPythonWordPressWeb developmentLinuxMySQLAndroid
    WindowsJavaC++ / C#LayoutReactUbuntuYiiDjangoProgramming1C-Bitrix
    LaravelSystem administrationTelegramJSONDebianPostgreSQLIOSGoogleHtaccessWindows Server
    GitMacOSGoogle ChromeCMSWooСommerceBootstrapNginxSQLUnityAPI
  • Ask
  • Leaders

Categories

JavaScriptPHPHTMLCssPythonWordPressWeb developmentLinuxMySQLAndroidWindowsJavaC++ / C#LayoutReactUbuntuYiiDjangoProgramming1C-BitrixLaravelSystem administrationTelegramJSONDebianPostgreSQLIOSGoogleHtaccessWindows ServerGitMacOSGoogle ChromeCMSWooСommerceBootstrapNginxSQLUnityAPI
Programming
JavaScript PHP HTML Css Python WordPress Web development Linux MySQL Android Windows Java C++ / C# Layout React Ubuntu Yii Django Programming 1C-Bitrix Laravel System administration Telegram JSON Debian PostgreSQL IOS Google Htaccess Windows Server
Make a leaderReport
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?

Reply
Answer the question

Answer the question

In order to leave comments, you need to log in

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

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

Similar questions
P
petrro2019-10-12 20:02:58
How to pass a for loop to the forEach method without changing anything (or almost nothing) in the code except for the for loop itself? 3Reply
A
An34992021-05-06 14:19:16
How to make buttons scroll horizontally if they do not fit into a line on small screens, on nuxt.js + typescript? 5Reply
A
Anton Parkhomenko2020-10-30 09:53:48
How to fix Rank Math plugin in Wordpress? 3Reply
T
Tomaszz2019-01-30 17:56:05
How do attackers find out passwords? 3Reply
Y
Yuri2020-11-07 20:28:20
How to pause animation in JS? 6Reply

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question

banners