Explanation: x**-1 is evaluated as (x)**(-1).
Q. Which of the following is the same as list(map(lambda x: x**-1, [1, 2, 3]))?
β
Correct Answer: (C)
[1/x for x in (1, 2, 3)]
Explanation by: Mr. Dubey
x**-1 is evaluated as (x)**(-1).
Discussion
Question Analytics
810
Total Visits
2 y ago
Published
Mr. Dubey
Publisher
85%
Success Rate