Why Python does *SLICING* the way it does??

John Bokma postmaster at castleamber.com
Wed Apr 20 05:43:36 EDT 2005


Raymond Hettinger wrote:

> to seeing code like:   for(i=0 ; i<n; i++) a[i]=f(i);   In contrast, a
> BASIC programmer may be used to FOR I = 1 to N:  a[I]=f(I); NEXT.   

Afaik, at least BBC BASIC uses zero based arrays :-) Maybe ZX Spectrum 
Basic too (too long ago to remember).

-- 
John                               MexIT: http://johnbokma.com/mexit/
                           personal page:       http://johnbokma.com/
        Experienced programmer available:     http://castleamber.com/
            Happy Customers: http://castleamber.com/testimonials.html



More information about the Python-list mailing list