Report Bug

QusWhich of the following is the same as list(map(lambda x: x**-1, [1, 2, 3]))? Qusनिम्नलिखित में से कौन सी लिस्ट (मैप (लंब 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


Solution
C. [1/x for x in (1, 2, 3)]



Explanation
x**-1 is evaluated as (x)**(-1).
CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad