Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Which of the following is the same as
list(map(lambda x: x**-1, [1, 2, 3]))?

Which of the following is the same as
list(map(lambda x: x**-1, [1, 2, 3]))?
a) [x**-1 for x in [(1, 2, 3)]]
b) [1/x for x in [(1, 2, 3)]]
c) [1/x for x in (1, 2, 3)]
d) error

Answer: c
Explanation: x**-1 is evaluated as (x)**(-1).

Join The Discussion