Which of the following is the same as list(map(lambda x: x**-1, [1, 2, 3]))?
Posted: Wed Jul 13, 2022 7:44 pm
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
b) [1/x for x in [(1, 2, 3)]]
c) [1/x for x in (1, 2, 3)]
d) error