MCQ Single Best Answer Not Set

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

ID: #3928 Python Built-in Functions MCQ 177 views
Question Info
#3928Q ID
Not SetDifficulty
Python Built-in Functions MCQTopic

Choose the Best Option

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

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

Explanation

Yes

Share This Question

Challenge a friend or share with your study group.