txt = 'A lot of things occur each day, every day.'
offset5 = txt.find('A') # 가장 먼저 나오는 'A' 의 index번호를 리턴함
offset1 = txt.find('e') # 가장 먼저 나오는 'e' 의 index번호를 리턴함
offset2 = txt.find('day') # 가장 먼저 나오는 'day' 의 index번호를 리턴함
offset3 = txt.find('day',30) # index번호 30번 이후에 나오는 day의 index번호를 리턴함
print(offset5) # 0이 출력됨
print(offset1)
print(offset2)
print(offset3)
0
22
27
38