13/08/2026
Can you solve this Python problem in reverse?
Required output:
```python
[2, 4, 6]
```
Which Python code produces this output?
A.
```python
[x * 2 for x in range(1, 4)]
```
B.
```python
[x + 2 for x in range(1, 4)]
```
C.
```python
[2 * x for x in range(3)]
```
D.
```python
list(range(2, 6))
```
Write A, B, C or D in the comments. Do not run the code—try to work it out logically.
For more questions, attempt the Python Output-to-Code Quiz:
https://www.learnwithchampak.live/2026/08/python-output-to-code-quiz.html