What Will Be The Output Of The Following Python Codep Pre #379
What will be the output of the following Python code?</p> <pre><code class="language-python"> >>>m = [[x, x + 1, x + 2] for x in range(0, 3)] </code></pre>
This multiple choice question (MCQ) is related to the book/course gs gs109 Python. It can also be found in gs gs109 Python Lists - Python Lists - Quiz No.5.
What will be the output of the following Python code?
>>>m = [[x, x + 1, x + 2] for x in range(0, 3)]
[[1, 2, 3], [4, 5, 6], [7, 8, 9]]
[[0, 1, 2], [1, 2, 3], [2, 3, 4]]
[1, 2, 3, 4, 5, 6, 7, 8, 9]
[0, 1, 2, 1, 2, 3, 2, 3, 4]