Exam4Training

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

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

Exit mobile version