A

Admin • 832.27K Points
Coach

Q. What will be the output of the following code?

Code:
print(bool(0))
  • (A) True
  • (B) False
  • (C) 0
  • (D) None
  • Correct Answer - Option(B)
  • Views: 18
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

In Python, `0` is considered False when converted to a boolean.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.