Q. >>>m = [[x, x + 1, x + 2] for x in range(0, 3)]

  • (A) [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
  • (B) [[0, 1, 2], [1, 2, 3], [2, 3, 4]]
  • (C) [1, 2, 3, 4, 5, 6, 7, 8, 9]
  • (D) [0, 1, 2, 1, 2, 3, 2, 3, 4]
πŸ’¬ Discuss
βœ… Correct Answer: (B) [[0, 1, 2], [1, 2, 3], [2, 3, 4]]
Explanation: execute in the shell to verify.

Explanation by: Mr. Dubey
execute in the shell to verify.

πŸ’¬ Discussion

πŸ“Š Question Analytics

πŸ‘οΈ
97
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
84%
Success Rate