str.index() and str.find() versus only list.index()

Roel Schroeven roel at roelschroeven.net
Mon Jul 13 12:56:33 EDT 2015


Hi,

Quick question: why does str have both index() and find(), while list 
only has index()? Is there a reason for that, or is it just an 
historical accident?


Best regards,
Roel

-- 
The saddest aspect of life right now is that science gathers knowledge
faster than society gathers wisdom.
   -- Isaac Asimov

Roel Schroeven




More information about the Python-list mailing list