Vidyalelo
Python · Q136

Python Lists MCQs: Exam Practice for List Concepts

Programming · Python · question 136

Q136

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)]
Answer
D.
error

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board