In Python, True + True equals 2
Philosophy meets mathematics in the most unhelpful way possible. Python treats boolean values as integers under the hood, meaning 'True' is just a 1 in disguise, allowing you to legally perform math equations on fundamental truths.

Keep exploring facts in this topic.
Technology →




