Write a program to check if a number is
present 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
39
Answer:
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")
Explanation:
Answered by
6
Please refer to the given attachment for the coding ....
Hope it will help you
Good luck.
Mark as brainliest please
Attachments:
Similar questions
Physics,
5 months ago
Math,
5 months ago
Chemistry,
10 months ago
CBSE BOARD XII,
10 months ago
Political Science,
1 year ago
Physics,
1 year ago