1s = "the dude is a cool dude"
2s.find('dude') # returns 4 - the first index of the first match in the string
1#iterate through list
2for item in yourlist:
3 #if item is equal to a value
4 if item == 'value':
5 #store the item in a variable
6 yourvar = item
7 #break out of loop
8 break