Explanation: to get a particular column as output, we can simple iterate across the rows and pull out the desired column, or iterate through positions in rows and index as we go. hence the output of the code shown above is: [2, 5, 8].
Q. ] for row in (0, 1, 2)]
β
Correct Answer: (C)
[2, 5, 8]
Explanation by: Mr. Dubey
to get a particular column as output, we can simple iterate across the rows and pull out the desired column, or iterate through positions in rows and index as we go. hence the output of the code shown above is: [2, 5, 8].
Discussion
Question Analytics
349
Total Visits
2 y ago
Published
Mr. Dubey
Publisher
87%
Success Rate