वर्गों का आउटपुट क्या होगा = {x: x*x for x in range(6)}
What will be the output of squares = {x: x*x for x in range(6)}
A)
B)
C)
D)
Explanation:
The code creates a dictionary where each key is a number from 0 to 5, and the value is its square.
So, the output is:
{0: 0, 1: 1, 2: 4, 3: 9, 4: 16, 5: 25}
The correct answer is (C).