You can experiment on your own... for example given a list of text values `find` locates the first index occurrence of a string. Remember iterables are indexed from 0, a value of -1 indicates it wasn't found
a = ['wet', 'souwet', 'western']
for i in a:
print(i.find('wet'))
0
3
-1
You can experiment on your own... for example given a list of text values `find` locates the first index occurrence of a string. Remember iterables are indexed from 0, a value of -1 indicates it wasn't found
a = ['wet', 'souwet', 'western']
for i in a:
print(i.find('wet'))
0
3
-1
thank you so much~~~