Python "why" questions
D'Arcy J.M. Cain
darcy at druid.net
Sat Aug 7 14:54:28 CEST 2010
On Sat, 07 Aug 2010 13:48:32 +0200
News123 <news1234 at free.fr> wrote:
> It makes sense in assembly language and even in many byte code languages.
> It makes sense if you look at the internal representation of unsigned
> numbers (which might become an index)
> For a complete beginner common sense dictates differently and there
> might be confusion why the second element in a list has index 1.
Would said beginner also be surprised that a newborn baby is zero years
old or would it be more natural to call them a one year old? Zero
based counting is perfectly natural.
D'Arcy J.M. Cain <darcy at druid.net> | Democracy is three wolves
http://www.druid.net/darcy/ | and a sheep voting on
+1 416 425 1212 (DoD#0082) (eNTP) | what's for dinner.
More information about the Python-list