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) None
  • (D) Error
  • Correct Answer - Option(B)
  • Views: 15
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

In Python, 0 is considered False in a boolean context.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.