What happens when you use lambda inside lambda?

0 votes
Can lambda function be used within lambda?
Jun 19 in Python by Fata
• 620 points
11 views

1 answer to this question.

0 votes

Yes you can use lambda inside lambda. Consider the following example:

A=lambda x:(lambda y:x+y)
t=A(4)
print(t(8))

Output: 12

answered Jun 19 by Wajiha
• 1,120 points

Related Questions In Python

0 votes
0 answers

what is python reduce? how do you use it?

can you give an example? READ MORE

May 9 in Python by Waseem
• 3,480 points
5 views
+2 votes
3 answers

what is the practical use of polymorphism in Python?

Polymorphism is the ability to present the ...READ MORE

answered Mar 31, 2018 in Python by anto.trigg4
• 3,420 points
1,147 views
+1 vote
3 answers
0 votes
2 answers

What is the use of Python language?

python is general purpose programming language.it very ...READ MORE

answered Mar 15 in Python by rajesh kumar
28 views
0 votes
1 answer

What is the use of raw_input function in Python?

raw_input fuction is no longer available in ...READ MORE

answered May 2, 2018 in Python by aayushi
• 750 points
59 views
0 votes
1 answer

What is the purpose of using lambda functions in Python?

The main purpose of anonymous functions come ...READ MORE

answered Jun 11 in Python by Nisa
• 1,090 points
26 views
0 votes
1 answer

Using lambda functions to solve Algebra

Python lambda functions can be used to ...READ MORE

answered Jun 17 in Python by anonymous
13 views
0 votes
1 answer

Why are Python lambdas useful?

The main purpose of anonymous functions come ...READ MORE

answered Jun 19 in Python by Wajiha
• 1,120 points
20 views
0 votes
1 answer

What is the use of join()?

Join()  function is used in threading to ...READ MORE

answered Jun 20 in Python by Wajiha
• 1,120 points
11 views