Q. How can you generate a list of squares of numbers from 0 to 4?
β
Correct Answer: (C)
Both option1 and option2
Explanation: Both list comprehension and generator expression passed to list() will produce the list.