πŸ“Š Python
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

πŸ‘οΈ
59
Total Visits
πŸ“½οΈ
11 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
80%
Success Rate