This Python Output Will Confuse You (True + True = ?)

Publié le: 19 avril 2026
sur la chaîne: Stackpilot Developers
45
2

Did you get the answer right? Most Python beginners are completely shocked by this output — and in this video I explain exactly WHY it happens, line by line.

🔥 What you'll learn in this video:
→ Why bool is a subclass of int in Python
→ How True equals 1 and False equals 0 at the memory level
→ Why you can do math with True and False
→ What "yes" * True actually returns (string × boolean!)
→ What type(True + 1) gives you — and why it's not bool
→ How Python's chained comparison True == 1 == 1.0 works
→ Real-world use cases experienced developers use daily

🔔 Subscribe for a new Python brain teaser every week
👍 Like if you learned something new today
💬 Comment your answer BEFORE I reveal it — were you right?

#python #learnpython #pythonprogramming #pythonbeginners #pythontips #pythontricks #codingtips #programmingtutorial #pythonexplained #softwareengineering


Sur cette page du site, vous pouvez voir la vidéo en ligne This Python Output Will Confuse You (True + True = ?) durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Stackpilot Developers 19 avril 2026, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 45 fois et il a aimé 2 téléspectateurs. Bon visionnage!