def xyz(a,n):
for i in range(0,len(a)):
if a[i]==n:
return I
return-1
a=[1,2,3,4,5,6,7,8,9]
n=int(input("Enter the number to search:"))
r=xyz(a,n)
if r!=-1:
print("item found at index",str(r))
else:
print("item not found")
ZGVmIHh5eihhLG4pOgogICBmb3IgaSBpbiByYW5nZSgwLGxlbihhKSk6CiAgICAgICBpZiBhW2ldPT1uOgogICAgICAgICAgcmV0dXJuIEkKICAgICAgIHJldHVybi0xCmE9WzEsMiwzLDQsNSw2LDcsOCw5XQpuPWludChpbnB1dCgiRW50ZXIgdGhlIG51bWJlciB0byBzZWFyY2g6IikpCnI9eHl6KGEsbikKaWYgciE9LTE6CiAgIHByaW50KCJpdGVtIGZvdW5kIGF0IGluZGV4IixzdHIocikpCmVsc2U6CiAgIHByaW50KCJpdGVtIG5vdCBmb3VuZCIp