What happens when you use lambda inside lambda?

0 votes
Can lambda function be used within lambda?
Jun 19 in Python by Fata
• 1,040 points
17 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,920 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
• 4,480 points
9 views
0 votes
1 answer

Can you explain what is the use _init_ and self in python?

Hi, The basic difference between these two are _init_ ...READ MORE

answered Aug 14 in Python by anonymous
31 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,336 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
42 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
37 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
21 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,920 points
26 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,920 points
16 views