3
When writing some didactic examples in Python 2.7, I came across the following situation in the following program:
a = 0b101
b = 0b111
c = a+b
print c
The result of this program is 12 (decimal). If I want to display a binary value in the sum result, I have to convert the obtained value to binary, and then the program looks like this:
a = 0b101
b = 0b111
c = bin(a+b)
print c
Well, knowing that Python is strongly typed (does not accept automatic conversion of types), as if, determining binary values in variables a and b, and adding their values, it presents me as the sum value a decimal value?