<human>:  get item's position in a list
<bot>: Here is some code to get the position of item 1 in `testlist`

gen = (i for (i, x) in enumerate(testlist) if (x == 1))
for i in gen:
  pass

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