Q. What will be the output of this code?

Code:
print(bool(''))
  • (A) True
  • (B) False
  • (C) None
  • (D) Error
πŸ’¬ Discuss
βœ… Correct Answer: (B) False
Explanation: An empty string is considered False in a boolean context.
Explanation by: Mr. Dubey
An empty string is considered False in a boolean context.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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