+ 1
print (int('0011',2)
output of this code is 3. i don't know this code works can someone explain me ? https://code.sololearn.com/c3vJogJbW0hX/?ref=app
5 Respostas
+ 2
2^0 + 2^1 = 1 + 2. int result = 3
0
Conversion of number system respective to base, it is?