I've been writing a text adventure game, and at one point I need to take an item, which is given by user input, from one list and move it to another list. Specifically, is there any way to get the index of an item when you know the item name besides something like:

```
list_one = ["item one", "item two"]
index_one = list_one.index("item one")

```

The code I'm using in my script is:

```
player.items.append(start_room.items.pop(start_room.items.index(next)))

```

Where next is the input, and this seems very messy. If there's an easier way to go about this, let me know. Thanks!