Q. 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]
πŸ’¬ Discuss
βœ… Correct Answer: (B) [1, 0, 1, 0, 1]
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].

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

πŸ‘οΈ
465
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
90%
Success Rate