0

Confused on simple python problem

why does print(int(“0011”, 2)) evaluate to 3?

13th Apr 2020, 4:36 PM
kdmd
1 Odpowiedź
+ 5
0011 is the binary number for 3. 2 means the base. https://www.sololearn.com/learn/4401/?ref=app
13th Apr 2020, 4:41 PM
Denise Roßberg
Denise Roßberg - avatar