What will be the output of the following Python code snippet? [code]{a**2 for a in range(4)}[/code]

What will be the output of the following Python code snippet?
Code:
{a**2 for a in range(4)}
A. {1, 4, 9, 16}
B. {0, 1, 4, 9, 16}
C. Error
D. {0, 1, 4, 9}
 

Tìm kiếm

Back
Top