Hey! Thank you for the response and kind words.
I am not able to understand your query here actually. The variables data and elem need to be defined by the user. They can be anything according to the users wish. If you feel more comfortable you can even define them using the input() function and allow the user to define their respective elements as well as find the find the position of the element they are looking for. You can also make use of the sort() function in lists to arrange them in ascending order. I hope I answered your query and Thank you!