Ngô Trường Vủ
New member
What will be the output of the following Python code snippet?
A. {1, 4, 9, 16}
B. {0, 1, 4, 9, 16}
C. Error
D. {0, 1, 4, 9}
Code:
{a**2 for a in range(4)}
B. {0, 1, 4, 9, 16}
C. Error
D. {0, 1, 4, 9}