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

Explanation: In Python, 0 is considered False in a boolean context.

Explanation by: Mr. Dubey
In Python, 0 is considered False in a boolean context.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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