PYTHON CIRCLE
Practice
Python Books
Archive
Subscribe
Login
Menu
Login
Practice
Python Books
Archive
Subscribe
Blog available for sell
This blog is available for sale. Please 'contact us' if interested.
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)].
D. error
Show Answer
Next Question
Correct Answer:
C
Explanation: x**-1 is evaluated as (x)**(-1).
© 2024-2025 Python Circle
Contact
Sponsor
Archive
Sitemap