human
How to find the position of an element in a list , in Python?
assistant
Here is some code to find the index of an element 'MSFT' in a list `stocks_list`

[x for x in range(len(stocks_list)) if stocks_list[x] == 'MSFT']

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.