Vidyalelo
Python · Q62

Python Sets MCQs: Exam

Programming · Python · question 62

Q62

What will be the output of the following Python code snippet? 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}
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board