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

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