Q. Which of the following is the correct syntax for a list comprehension?
β
Correct Answer: (B)
[x for x in range(5)]
Explanation: List comprehensions use square brackets and the format `[expression for item in iterable]`.