Answer:
Program :
list_1=[]#take the empty list.
size=int(input("Enter the size of the list: "))#take the size of the list from the user
for x in range(size): #for loop which insert the elemnt on the list.
list_1.append(int(input("Enter the "+str(x+1)+" element of the list: ")))#take the user input and insert the element.
element=int(input("Enter the element to be searched: "))#it take the elemnt to search.
loc=1#intialize the location value.
count=0
for x in list_1:#for loop to check the element.
if(x==element): #check the element.
print(loc,end=", ")#print the location of the element.
count=count+1
loc=loc+1
if(count==0):
print("The element is not present on the list")#print when elemnt are not present.
Output:
Explanation: