How Find the position of a number in a list of numbers

how can I search for a number within a list that rotates each time a request is made and know in what position within the list that number is.
there is some way to do it in ob2?

example:
first request [1,6,7,5,3,2,0,8,9,4]
second request [6,0,8,5,2,1,9,3,4,7]
and I want to find the position of number 7 .

You can use python or java

1 Like

Use LoliCode and write this snippet

int position = yourList.IndexOf("7");

the index of the string containing the value 7 will be in the position variable.

1 Like