+ 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

4th Nov 2020, 5:20 AM
Jaya Pratha
Jaya Pratha - avatar
3 ответов
+ 2
2^0 + 2^1 = 1 + 2. int result = 3
4th Nov 2020, 6:06 AM
Sergey
Sergey - avatar
0
Conversion of number system respective to base, it is?
27th Dec 2021, 12:08 PM
Ren
Ren - avatar