[Tutor] find

dman dsh8290@rit.edu
Tue, 4 Dec 2001 22:14:58 -0500

On Tue, Dec 04, 2001 at 06:09:18PM -0800, john public wrote:
| find(t2,red[0[1]])  

import string
string.find( t2 , red[0][1] )

would be what you meant.

As of python 2.0 (or was it 2.1? I think 2.0) you can use the method
directly on the string object :

t2.find( red[0][1] )



If any of you lacks wisdom, he should ask God, who gives generously to
all without finding fault, and it will be given to him.  But when he
asks he must believe and not doubt, because he who doubts is like a wave
of the sea, blown and tossed by the wind.
        James 1:5-6