Why in Python3 print(0o11) will be 9?
|
1 answer
Because it is an octal number system . If you convert to decimal, it will be 0o11 = 1*(8**1) + 1*(8**0) = 8 + 1 = 9 .
- and the letter 'o' what does it mean? - Ilnyr
- @Ilnyr, "octal" (actually, octal) - insolor
|