Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 01e3cb8

Browse files
Create Lambda.py
1 parent f681eb7 commit 01e3cb8

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

‎Lambda.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
'''
2+
3+
Lambda function usage in python
4+
(Powerfull and anonymous function)
5+
6+
'''
7+
8+
def function(n):
9+
return lambda a:a*n
10+
11+
fun=function(8)
12+
print(fun(8))
13+
14+
myfun=lambda a,b,c: a*b*c
15+
print(myfun(2,3,4))

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /