Report Bug

Qus

Which of the following Python statements will result in the output: 6?

  A = [[1, 2, 3],       [4, 5, 6],       [7, 8, 9]]
Qusनिम्नलिखित Python में से कौन सा स्टेट्मेंट आउटपुट में रिजल्ट देगा: 6?


A. A[2][3]
B. A[2][1]
C. A[1][2]
D. A[3][2]


Solution
C. A[1][2]



Explanation
The output that is required is 6, that is, row 2, item 3. This position is represented by the statement: A[1][2].
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