from array import* arr=['i',[ ]] N=int(input("Enter the numbers of elements:")) print("enter the elements : ") for i in range(N): arr.append(int(input())) key=int(input("Enter the key element :")) flag='False' for i in range(N): if (arr[i]==key): flag='True' print(key," is found at location ",i-1) break else: print("key is not found") break