1000 Python Questions
Get 1 Python question daily. Join this telegram channel
Advertise with us
Python Multiple Choice Questions
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)].
Explanation: x**-1 is evaluated as (x)**(-1).
Please subscribe to get the latest articles in your mailbox.
© 2021-2022 Python Circle