String Search?

j_l_alexander at j_l_alexander at
Tue Feb 29 17:45:37 CET 2000

As a pre-note: Having just picked up Python,
please excuse my ignorance.

How exactly do I search for a given string within
a string? i.e. how do I search for "foo" within
the sentence "the foo falls at midnight"? The
position of the string within the sentence isn't
important, just the existance.


Sent via
Before you buy.

More information about the Python-list mailing list