On Fri, Aug 29, 2003 at 04:44:33PM -0700, Steve Lamb wrote: > On Fri, 29 Aug 2003 20:01:23 +0100 > Pigeon <jah.pigeon@ukonline.co.uk> wrote: > > Oh, that's interesting - the for loop's running from 0 to 9, so it > > prints "81", not "100". > > Yes, range(x) does 0 to x-1. This is for stuff like this (and this is a > bad example)... > > for x in range(10): > baz[x] = foo[x] + bar[x] ...so array indices work like C, then. OK! -- Pigeon Be kind to pigeons Get my GPG key here: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x21C61F7F
Attachment:
pgp0ueua7hYBn.pgp
Description: PGP signature