[Tutor] Efficient word count

Jorge Louis De Castro jorge at bcs.org.uk
Thu Jul 21 23:47:48 CEST 2005

Hi there,

I was wondering, and maybe this is because I come from a different programming language background, but is a word count using len(list) after a string.split, efficient if there are many words? Or should I write my own word count for large(ish) blocks of text (500-1000)?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20050721/4e63618c/attachment.htm

More information about the Tutor mailing list