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,050 points
1,922 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,950 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,540 points
288 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
1,230 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
4,286 views
+1 vote
7 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
684 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
1,427 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
2,629 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,950 points
637 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,950 points
421 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP