A

Admin • 832.27K Points
Coach

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

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

Explanation by: Admin

An empty list evaluates to `False` in a boolean context.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.