Computer Science, asked by TeeshaAhuja, 10 months ago

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 apurvvaish2003
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 soumilishr143
6

Please refer to the given attachment for the coding ....

Hope it will help you

Good luck.

Mark as brainliest please

Attachments:
Similar questions