What happens when you use lambda inside lambda?

0 votes
Can lambda function be used within lambda?
Jun 19, 2019 in Python by Fata
• 1,040 points
30 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, 2019 by Wajiha
• 1,930 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, 2019 in Python by Waseem
• 4,520 points
19 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, 2019 in Python by anonymous
114 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,440 points
1,885 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, 2019 in Python by rajesh kumar
55 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, 2019 in Python by Nisa
• 1,090 points
65 views
0 votes
1 answer

Using lambda functions to solve Algebra

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

answered Jun 17, 2019 in Python by anonymous
35 views
0 votes
1 answer

Why are Python lambdas useful?

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

answered Jun 19, 2019 in Python by Wajiha
• 1,930 points
37 views
0 votes
1 answer

What is the use of join()?

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

answered Jun 20, 2019 in Python by Wajiha
• 1,930 points
29 views