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

Explanation: In Python, `0` is considered False when converted to a boolean.

Explanation by: Mr. Dubey
In Python, `0` is considered False when converted to a boolean.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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