Python MCQ Number 01382

Python MCQ Set 1 1. What is the output of the code shown? l=[1,2,3,4,5] [x&1 for x in l] a) [1, 1, 1, 1, 1] b) [1, 0, 1, 0, 1] c) [1, 0, 0, 0, 0] d) [0, 1, 0, 1, 0] AnswerAnswer: b [Reason:] In the code shown above, each of the numbers…


This content is for paid premium members only.
You can view complete answer after activation your membership.


Need only one answers. Simply buy single day pass and email. We will send answers for this question.
Login Buy membership