Bit-Länge einer positiven Ganzzahl in Python
1 = 0b1 -> 1
5 = 0b101 -> 3
10 = 0b1010 -> 4
100 = 0b1100100 -> 7
1000 = 0b1111101000 -> 10
…
Wie kann ich die Bitlänge einer Ganzzahl ermitteln, d. H. Die Anzahl der Bits, die für die Darstellung einer positiven Ganzzahl in Python erforderlich sind?