BLACK FRIDAY SALE – Unlock Up to 25% OFF on All Exam Prep! - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Python Institute PCAP-31-03 Exam - Topic 8 Question 26 Discussion

Posted by Jade on May 05, 2022 at 02:39 AM

A two-parameter lambda function raising its first parameter to the power of the second parameter should be declared as:

Suggested Answer: D

Get Premium PCAP-31-03 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
11 comments · newest first
MA
Malinda 1 year ago
I’m not sure about D, seems too simple for a lambda function.
GI
Gianna 1 year ago
Wait, can you really use lambda without parentheses?
PA
Paris 1 year ago
C is totally wrong, you can't use def with lambda.
EL
Eladia 1 year ago
I thought it was B at first, but D makes more sense.
DE
Delmy 1 year ago
Definitely D, that's how you write a lambda!
CH
Charisse 1 year ago
I practiced a similar question, and I feel like the correct answer should not include the `def` keyword, so I think it's either D or A.
SH
Sherman 1 year ago
I'm not entirely sure, but I remember something about using `:` after the parameters in a lambda function. Could it be B?
MO
Monte 1 year ago
I think the syntax for a lambda function is just `lambda x, y:` without the parentheses, so maybe it's D?
TA
Tamar 1 year ago
I’m confused about the use of `=` in option A. I feel like it should be more like option D, but I can't remember for sure.
SH
Shaniqua 1 year ago
Alright, let me think this through step-by-step. I need to find the right object, add the CSAT picklist value, and set the appropriate Measure Type or Target Type. I've got this!
SH
Sherrell 1 year ago
I'm torn between D and E! It seems like they could be focused on price since they don't care much about quality.
0/2000 characters

Save Cancel