Another Wart! string.find() [ was: namespace issue? ]

Greg Ewing greg at cosc.canterbury.ac.nz
Mon Jun 25 08:27:08 CEST 2001


"Steven D. Majewski" wrote:
> 
> I know that *I* learned zero based sequences in High School math --
>  N-sub-zero, N-sub-one,

Mathematicians seem to use 0-based and 1-based indices
with about equal frequency, in my experience. Although
when doing *arithmetic* with the indices, 0-based
often seems to be preferred -- probably for the same
reason that Python prefers it!

-- 
Greg Ewing, Computer Science Dept, University of Canterbury,	  
Christchurch, New Zealand
To get my email address, please visit my web page:	  
http://www.cosc.canterbury.ac.nz/~greg



More information about the Python-list mailing list