Write a program to check if a number ispresent in the list or not. If the number is present, print the position of the number. Print an appropriate message if the number is not present in the list
Answers
Answered by
1
Answer:
Given below
Explanation:
n=int(input("enter no. "))
l=eval(input("enter list "))
for i in range(len(l)):
if l[i]== n:
print("No. found at ",i)
break
else:
print("No. Not Found")
Similar questions