Programming > ANSWERS AND COMMENTARIES > Python_question_sets_and_answers (All)
: 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. [Show More]
Last updated: 1 year ago
Preview 1 out of 62 pages
Connected school, study & course
About the document
Uploaded On
Oct 18, 2022
Number of pages
62
Written in
This document has been written for:
Uploaded
Oct 18, 2022
Downloads
0
Views
68
In Browsegrades, a student can earn by offering help to other student. Students can help other students with materials by upploading their notes and earn money.
We're available through e-mail, Twitter, Facebook, and live chat.
FAQ
Questions? Leave a message!
Copyright © Browsegrades · High quality services·