Python "why" questions

Nobody nobody at nowhere.com
Sat Aug 7 10:48:17 EDT 2010


On Sat, 07 Aug 2010 09:53:48 -0400, D'Arcy J.M. Cain wrote:

>> A new born baby is in his/her first year. It's year 1 of his/her life.  
>> For this reason, also "the year 0" doesn't exist. From the fact that a  
>> baby can be half a year old, you derive that arrays should have floats  
>> as indices?
> 
> No.  You are giving me math and logic but the subject was common
> sense.  Common usage counts ages as years with the second year called
> "one year old" so zero based counting is common.  We don't tell Aunt
> Martha that little Jimmy is in his third year.

Apparently, the Japanese used to (before they started adopting western
conventions). I.e. ages were given as "in his tenth year" (meaning nine
years old).





More information about the Python-list mailing list