Programming Language Python List MCQ Question #3875
Single Choice Not Set

QWhat will be the output after the following statements?
a = [-3, -1, 0, 1, 3]
print([x for x in a if x>=0])

ID: #3875 Python List MCQ 219 views
Question Info
#3875Q ID
Not SetDifficulty
Python List MCQTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A [-3, -1, 0, 1, 3]
  • B [0, 1, 3]
  • C [1, 3]
  • D [-1, 0, 1]
Correct Answer

Explanation

[0, 1, 3]

Share This Question

Challenge a friend or share with your study group.