Q. What is the output of this code?

Code:
print(bool('False'))
  • (A) False
  • (B) True
  • (C) Error
  • (D) None
πŸ’¬ Discuss
βœ… Correct Answer: (B) True
Explanation: Non-empty strings are considered True, regardless of content.
Explanation by: Mr. Dubey
Non-empty strings are considered True, regardless of content.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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