Write a python program to search position of numbers
Answers
Answered by
0
Answer:
L=[2,58,95,999,65,32,15,1,7,45]
n=int(input("Enter the number to be searched : "))
found=0.
for x in L:
if x==n:
print("Item found at the Position : ",L. index(n)+1)
found=1.
if found==0:
Answered by
2
Answer:
Programming Example
L=[2,58,95,999,65,32,15,1,7,45]
n=int(input("Enter the number to be searched : "))
found=0.
for x in L:
if x==n:
print("Item found at the Position : ",L. index(n)+1)
found=1.
if found==0:
Similar questions