πŸ“Š Problem Solving and Python Programming
Q. ] for row in (0, 1, 2)]
  • (A) [7, 8, 9]
  • (B) [4, 5, 6]
  • (C) [2, 5, 8]
  • (D) [1, 4, 7]
πŸ’¬ Discuss
βœ… Correct Answer: (C) [2, 5, 8]

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].


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