When I type small integers with a 0 in front into python, they give weird results. Why is this?
>>> 011 9 >>> 0100 64 >>> 027 23 <
They are apparently octal (base 8) numbers, and the 0 is just an outdated prefix that Python 2 used to use.
In Python 3 you must write: 0o11 instead.
0o11
They are still integers but doing operations with them will give a result in regular base-10 form.