Yasir Bhutta
|
List Comprehension
0/15
30:00
Exit
Question 1
Flag
1/15
What is the output of this list comprehension?
Python
Copy
print([x * 2 for x in range(3)])
A
[0, 2, 4]
B
[2, 4, 6]
C
[1, 2, 3]
D
[0, 1, 2]
Need a hint? View Explanation