I am new to Python, in a way new to programming.
Was trying to teach myself python from the basics... and came across this weird thing...
Please find below the printing results...
>>> print 1,000,000
1 0 0
>>> print 1,112,231
1 112 231
>>> print 000
0
>>> print 1,001,002
1 1 2
>>> print 1,100,001,0010
1 100 1 8
While I do understand that 0010 is the binary equivalent of 8 (in the last one), I do not understand why does Python do so? Is it some embedded logic of the language or something else?
The remaining, I was able to figure out; however if anyone can give a brief explanation it would be great!