str.find for multiple strings

Bart Nessux bart_nessux at hotmail.com
Wed Feb 11 13:18:27 EST 2004


x = str.find(temp, '120.50')

I am looking for '120.50' '120.51' '122.78' etc. How can I do this with 
just one str.find... I can use re if I must, but I'd like to avoid it if 
possible.




More information about the Python-list mailing list