Explanation: in the code shown above, each of the numbers of the list, that is, 1, 2, 3, 4 and 5 are and-ed with 1 and the result is printed in the form of a list. hence the output is [1, 0, 1, 0, 1].
Q. for x in l]
β
Correct Answer: (B)
[1, 0, 1, 0, 1]
Explanation by: Mr. Dubey
in the code shown above, each of the numbers of the list, that is, 1, 2, 3, 4 and 5 are and-ed with 1 and the result is printed in the form of a list. hence the output is [1, 0, 1, 0, 1].
Discussion
Question Analytics
443
Total Visits
3 y ago
Published
Mr. Dubey
Publisher
95%
Success Rate