Python में नीचे दिए गए कोड का आउटपुट क्या होगा?
What will be the output of the following Python code?
L = [1, 2, 3, 4, 5]
print([x & 1 for x in L])
A
[1, 2, 3, 4, 5]
B
[1, 0, 1, 0, 1]
C
[0, 1, 0, 1, 0]
D
Error
Explanation
Given Code:
Correct Answer: B) [1, 0, 1, 0, 1]