A

Admin • 833K Points
Coach

Q. What is the result of `bool([])`?

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

Explanation by: Admin

Empty containers like `[]`, `{}`, `set()` evaluate to `False` in boolean context.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.