def search(arr, n, x): 
  
    for i in range (0, n): 
        if (arr[i] == x): 
            return i; 
    return -1; 
  
nn=int(input("number of values u entered? "))
arr=[]
for  i in range(nn):
    arr.append(int(input("Enter %s value="%str(i+1))))
x = int(input("Which number u want? ")); 
n = len(arr); 
result = search(arr, n, x) 
if(result == -1): 
    print("your entered value is not avaialble") 
else: 
    print("Element is present at index", result); 

902804130534e98f3909a0b72be4affb57a5cccf
<mask token>

def search(arr, n, x):
    for i in range(0, n):
        if arr[i] == x:
            return i
    return -1


<mask token>

def search(arr, n, x):
    for i in range(0, n):
        if arr[i] == x:
            return i
    return -1


<mask token>
for i in range(nn):
    arr.append(int(input('Enter %s value=' % str(i + 1))))
<mask token>
if result == -1:
    print('your entered value is not avaialble')
else:
    print('Element is present at index', result)

def search(arr, n, x):
    for i in range(0, n):
        if arr[i] == x:
            return i
    return -1


nn = int(input('number of values u entered? '))
arr = []
for i in range(nn):
    arr.append(int(input('Enter %s value=' % str(i + 1))))
x = int(input('Which number u want? '))
n = len(arr)
result = search(arr, n, x)
if result == -1:
    print('your entered value is not avaialble')
else:
    print('Element is present at index', result)

def search(arr, n, x): 
  
    for i in range (0, n): 
        if (arr[i] == x): 
            return i; 
    return -1; 
  
nn=int(input("number of values u entered? "))
arr=[]
for  i in range(nn):
    arr.append(int(input("Enter %s value="%str(i+1))))
x = int(input("Which number u want? ")); 
n = len(arr); 
result = search(arr, n, x) 
if(result == -1): 
    print("your entered value is not avaialble") 
else: 
    print("Element is present at index", result); 
