val = 3
A = [1,2,3,4,5]
N = len(A)
for i in range(N):
    if val == A[i]:
        print("探しました")
