human
get item's position in a list
assistant
Here is some code to get the position of item `element` in list `testlist`

try:
    print(testlist.index(element))
except ValueError:
    pass

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