Back to quizzes
List & Dictionary Comprehensions Quiz
Python | Medium | 15 questions
Question 1 of 15
4 free questions left
What is the output of the following list comprehension: [x**2 for x in range(5)]?
A
[0, 1, 4, 9, 16]
B
[1, 2, 3, 4, 5]
C
[0, 1, 2, 3, 4]
D
[1, 4, 9, 16, 25]