I'm trying to find a way to increment a value (room) to the next item on a list (dungeon), so that I can create a random instance of rooms in a text adventure.

```
def dungeon_generator(): #used to generate random dungeon order
    dungeon = random.sample(range(2, 19), 8)
    dungeon.append(20) #used to add Boss
    dungeon[:0]=[1] #used to add Entrance

```

Pseudocode:

```
room = dungeon[0] #i.e. room == 1
while room != 0

    if room == 1:
        do things in room
        room finished
        room = NEXT number in dungeon list

    elif room == 2
        do things in room
        room finished
        room = NEXT number in dungeon list

etc

    elif room == 0
        game over

```

Can anyone suggest the best way to read the next item from the dungeon list? Because I've used `random.sample`, the list items will be unique if that helps.