MCQ Single Best Answer Not Set

QWhat will be the output after the following statements?
x = 'None'
if bool(x):
    print('Yes')
else:
    print('No')

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

Choose the Best Option

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

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

Explanation

Yes

Share This Question

Challenge a friend or share with your study group.