Skip to content

Glossary: Algorithms Beyond the Basics

bit_count()

Also written: int.bit_count

An integer method (Python 3.10+) that counts the 1 bits in a number, such as how many options an order has switched on.

Where the book teaches it

Related terms

BitmaskBinary