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]
Answer» B. [[0, 1, 2], [1, 2, 3], [2, 3, 4]]
Explanation: execute in the shell to verify.
1.2k
0
Do you find this helpful?
17

Discussion

No comments yet