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

  • (A) False
  • (B) True
  • (C) None
  • (D) Error
πŸ’¬ Discuss
βœ… Correct Answer: (B) True
Explanation: A non-empty string, even with just space, evaluates to `True`.
Explanation by: Mr. Dubey
A non-empty string, even with just space, evaluates to `True`.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
87
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
89%
Success Rate