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
822
Total Visits
3 y ago
Published
Mr. Dubey
Publisher
90%
Success Rate