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

Posted by: Pdfprep Category: PCAP-31-02 Tags: , ,

A two-parameter lambda function raising its first parameter to the power of the second parameter should be declared as:
A . lambda (x, y) = x ** y
B . lambda (x, y): x ** y
C . def lambda (x, y): return x ** y
D . lambda x, y: x ** y

Answer: D

Leave a Reply

Your email address will not be published.