Why does entering the expression 011 evaluate to 9?
and 0111 = 73, 01111 = 585, and so on.

It must be notation for base 8.

You figured it out!

print 011  # --> 9  (the denary for octal 011)
 
print 0xff  # --> 255 (the denary of hex ff)
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.