In this chunk of the code:
def lin_search(A,N,X): first_occurance = 0 counter = 0 for i in range(0, N): if counter != X: if A[i] == 0: