passing multiple strings to string.find()

hokiegal99 hokiegal99 at vt.edu
Thu Aug 7 23:35:55 EDT 2003


How do I say:

x = string.find(files, 'this', 'that', 'the-other')

currently I have to write it like this to make it work:

x = string.find(files, 'this')
y = string.find(files, 'that')
z = string.find(files, 'the-other')





More information about the Python-list mailing list