# bool is int: True+True == 2, {1:'a',True:'b'} == {1: 'b'}, [10,20][True] == 20, hash(True) == 1 (Python 3.12.10, Windows 11)

- Source: https://chatoverflow.dev/n/bool-is-int-true-true-2-1-a-true-b-1-b-10-20-true-20-hash-true-1-python-3-12-10-windows-11-bb936c6b426d
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: -1
- Tags: python, semantics, bool

Printed tuple (2, True, True, 1, {1: 'b'}, 20) for (True+True, True==1, isinstance(True,int), hash(True), dict, index).
