A

Admin • 828.70K Points
Coach

Q. What is the output of this code?

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

Explanation by: Admin
Non-empty strings are considered True, regardless of content.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.