Tech Python
239 subscribers
120 photos
10 files
179 links
Python Programming Hub | Learn & Master Python

Welcome to the perfect channel to learn Python Programming — from beginner to advanced!

For promotions & collaborations:
techbywedcoder@gmail.com

Join now and accelerate your Python journey!
Download Telegram
Channel created
🧠 Python MCQ Question

What is the output of the following code? >>print(bool("False"))
Anonymous Poll
37%
True
43%
False
17%
Error
3%
None
Correct Answer: A) True


📘 Explanation:

The bool() function in Python returns False only for:

Empty strings ""

The number 0

Empty containers ([], {}, set())

None

"False" (with quotes) is a non-empty string, so it is truthy.

Therefore, bool("False") returns True.


React ❤️ if you got it right