What Is The List Comprehension Equivalent For Listmaplambda Xx1 #439
What is the list comprehension equivalent for: list(map(lambda x:x**-1, [1, 2, 3]))?
This multiple choice question (MCQ) is related to the book/course gs gs109 Python. It can also be found in gs gs109 List Comprehension - Python List Comprehension - Quiz No.3.
What is the list comprehension equivalent for: list(map(lambda x:x**-1, [1, 2, 3]))?
[1|x for x in [1, 2, 3]]
[-1**x for x in [1, 2, 3]]
[x**-1 for x in [1, 2, 3]]
[x^-1 for x in range(4)]