πŸ“Š Python
Q. What will be the output of this code?
Code:
print(bool(0))
  • (A) True
  • (B) False
  • (C) Error
  • (D) None
πŸ’¬ Discuss
βœ… Correct Answer: (B) False

Explanation: Zero is considered False in boolean context.

Explanation by: Mr. Dubey
Zero is considered False in boolean context.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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