I use python and I have a list of numbers and I would like to search a number X but I must find the second one element and if it doesn't exist I must get a msg
Example:
list: [5, 6, 8, 7, 9, 6, 7, 9, 2, 4, 6, 8]
X = 6
return: i = 5
Ps: I need the faster code because I need to repeat it in a loop of 200000 i