Golden mirage help

I can’t figure out what is wrong with my code

def realCoin(coins):
    coinArray = []
    for coin in coins:
        coinArray.append(coin.value)
    for index in range(len(coinArray)):
        value = coinArray[index]
        for j in range(index, len(coinArray)):
            val = coinArray[j]
            if value != val:
                self.say(value)
                return coins[index]

loop:
    items = self.findItems()
    item = realCoin(items)
    if item:
        self.moveXY(item.pos.x, item.pos.y)

A little more explanation on what is wrong with your code? I have no idea what to check

I’m not sure what you are trying to do. Could you explain the idea of your algorithm?

The current realisation just searches the first coin that is distinguish from another coin in the array.

i don’t move to the real coin, and i am trying to

I’m at a complete loss here. Is there a level that might help lead me into this? This level was played out of order but even going back to it at the end of the desert I have not idea how to compare the value of two coins.
I can:
create a variable and set it to 0
initialize the loop index
while the index is less than the length of the coins array

*** and here’s the problem, how do I compare this coin to the previous to know if it’s the same ***
no idea what code to say skip it
if it’s different then collect it (I think I can figure this out)