Sarven siege help

    enemies = self.findEnemies()
    gold =
    items = self.findItems()
    if gold > 20:
        self.moveXY(83, 78)
        for item in items:
            xpos = items.pos.x
            ypos = items.pos.y
            self.moveXY(xpos, ypos)

says "pos was null. use a null check before accessing properties.
this is the line it gets stuck on:
xpos = items.pos.x

please help.

you want to change that items.pos.x to item.pos.x