Saved Bookmarks
| 1. |
Write a program to input a list of numbers and search an element in the list. |
|
Answer» a=list(input('enter the list')) b=input('enter the number to be found')) for i in range(1,len(a)+1): if a[i]==b: print(i,"position of the element ") else: print('no element found') |
|