from array import * c_array=array('i',[]) N=int(input("Enter the total number of elements : ")) print("\n Enter all ",N,"elements") for i in range(N): c_array.append(int(input())) key=int(input("Enter the key to be searched : " )) for i in range(N): if(key==c_array[i]): flag="true" print("\n Key is found at",i+1,"location") break if flag=="false": print("key is not found")