A

Admin • 833.24K Points
Coach

Q. What is the output of `bool(' ')`?

  • (A) False
  • (B) True
  • (C) None
  • (D) Error
  • Correct Answer - Option(B)
  • Views: 24
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

A non-empty string, even with just space, evaluates to `True`.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.