Single Choice Not Set

QWhat will be the output after the following statements?
x = -4
if bool(x):
    print(x)
else:
    print(0)

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

Choose the Best Option

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

  • A No output
  • B Error
  • D -4
Correct Answer

Explanation

-4

Share This Question

Challenge a friend or share with your study group.