A

Admin • 833K Points
Coach

Q. What will be the output of this code?

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

Explanation by: Admin

An empty string 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.