MCQ Practice Single Best Answer Topic: Python Built-in Functions MCQ

Q What will be the output after the following statements?
x = [1, 2, 3]
if bool(x):
    print('Yes')
else:
    print('No')

Question ID
#3928
Subchapter
Python Built-in Functions MCQ
Action
Choose one option below

Choose Your Answer

Click an option to check whether your answer is correct.

  • A No
  • B Yes
  • C None
Correct Answer: B

Explanation

Yes

Share This Question

Share this MCQ with your friends or study group.