1my_string = "Hello World!"
2
3my_string.index("l") # outputs 2
4# this method only outputs the index of the first "l" value in the string/list
11) how to find index of a word in a string:
2 my_string = "Hello World!"
3
4 my_string.index("l")
5
62) how to find the first occurance of a word in a string:
7 print(verse.index('and'))
8
9
10 3)how to find the last occurance of a word in a string:
11 print(verse.rindex('you'))
12