Typically I’m a fan of Python, but…
Python integers are infinite precision, great! But working with binary math + negative numbers can be confusing.
Essentially, assume Python stores negative numbers also with infinite precision but in two’s compliment when doing binary math.
A favorite: Python Horror Show:
https://github.com/pablogsal/python-horror-show
Since python 3.10, Python supports the bit_count()
https://faun.pub/why-dict-vs-slots-in-python-is-very-important-a271fbfd08db