문제 : [SWEA D3] 1213. [S/W 문제해결 기본] 3일차 - String
for i in range(10):
t = int(input())
word = input()
line = input()
index = 0
count = 0
while True:
index = line.find(word, index)
if index == -1:
break
index += len(word)
count += 1
print(f"#{t} {count}")
line.find(word, index)
: line
의 index 자리부터 word
가 있는지 확인, 있으면 해당 index 반환 없으면 -1 반환