Python "why" questions

MRAB python at mrabarnett.plus.com
Thu Aug 19 21:55:09 CEST 2010


Russ P. wrote:
> Yes, apparently Basic uses one-based indexing too.
> 
For arrays, yes and no. Traditionally, DIM A(10) has 11 elements,
starting at 0, although it might depend on the version of Basic.

For strings, yes.

> As for Ada, apparently, the programmer needs to explicitly define the
> index range for every array. Weird. But I get the impression that one-
> based indexing is used much more than zero-based indexing.




More information about the Python-list mailing list