new to python. so i have this function, and I don't know how to get it to take two arguments and return it in another list with their positions. in the main program i want it to call x to search for in the list, and print the meassage where it occurs. am i going about this the right way? this what I came up with. would really appreciate the help thanks in advance.
def find_multiple():
arg1 = input(" L: " )
arg2 = input(" x: ")
return L
def main():
L = [4, 10, 4, 2, 9, 5, 4 ]
x = int(input("Enter an element to search for in the list: "))
if (len(L_indexes) == 0):
print(x, " does not occur in L.")
L =[]
results = L
print("enter an element to search for in the list: " )
if(len(L) == 0):
print("element does not occur in the list")
else:
print("the number of occurrences in L: ", x)
main()