filmov
tv
Find the output of the following code - 1|MCQ QUESTION Predict the output of following python

Показать описание
Find the output of the following code - 1| MCQ QUESTION Predict the output of following python programs
Explanation : In the above program r and s are lambda functions or anonymous functions and q is the argument to both of the functions. In first step we have initialized x to 2. In second step we have passed x as argument to the lambda function r, this will return x*2 which is stored in x. That is, x = 4 now. Similarly in third step we have passed x to lambda function s, So x = 4*3. i.e, x = 12 now. Again in the last step, x is multiplied by 2 by passing it to function r. Therefore, x = 24.
🌀 Tags 🌀
python,what is the output program,python edureka,the coding train,python programming,python tutorial,how to solve randint based output in python,nature of code,guess the output,randint based output in python,python for beginners,output finding questing pthon,class 12 computer science python output questions,flow of execution in python class 12,linear regression in python,python projects for beginners with source code,python projects with source code
🌀 Hashtags 🌀
#pythontutorialshorts#python
#techupdateshorts#youtubeshorts#shorts#youtube#aatishworld#pythonmcqquestions#mcqquestions
Explanation : In the above program r and s are lambda functions or anonymous functions and q is the argument to both of the functions. In first step we have initialized x to 2. In second step we have passed x as argument to the lambda function r, this will return x*2 which is stored in x. That is, x = 4 now. Similarly in third step we have passed x to lambda function s, So x = 4*3. i.e, x = 12 now. Again in the last step, x is multiplied by 2 by passing it to function r. Therefore, x = 24.
🌀 Tags 🌀
python,what is the output program,python edureka,the coding train,python programming,python tutorial,how to solve randint based output in python,nature of code,guess the output,randint based output in python,python for beginners,output finding questing pthon,class 12 computer science python output questions,flow of execution in python class 12,linear regression in python,python projects for beginners with source code,python projects with source code
🌀 Hashtags 🌀
#pythontutorialshorts#python
#techupdateshorts#youtubeshorts#shorts#youtube#aatishworld#pythonmcqquestions#mcqquestions