> find(s, sub [,start [,end]]) -> in > > what does *args mean (especially the '*')?
*args means that a variable number of arguments can be provided. The exact nature of those being described in the next line. So: find =(s,sub) find(s,sub,start) find(s,sub,start,stop) are all valid > also, in the sub, why put a comma before start? because start is optional but if you have it there must be a comma separating it from the previous sub argument. That is the comma is required as part of the syntax. The square brackets indicate that start is optional. > what does 'in' mean? IT should be 'int' The arrow shows the return value - in this case the location as an index number. HTH< Alan G _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor