学校Python课只会半步,后面想不出来,求解惑

img

lst=input().split()
x=input()
t=0
for i in range(len(lst)):
    if x==lst[i]:
        print(i)
        t+=1
print('times:',t)

img