# Shine getter level help pythin

**URL:** <https://discourse.codecombat.com/t/shine-getter-level-help-pythin/20983>\
**Category:** Level Help\
**Created:** [April 14, 2020, 3:58pm UTC](https://discourse.codecombat.com/t/shine-getter-level-help-pythin/20983 "2020-04-14T15:58:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ZAX155](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/zax155/32/34141_2.png) [@ZAX155](https://discourse.codecombat.com/u/ZAX155)\
**Post date:** [April 14, 2020, 3:58pm UTC](https://discourse.codecombat.com/t/shine-getter-level-help-pythin/20983/1 "2020-04-14T15:58:20Z")

</div>

@dedreous @Deadpool198

```python
while True:
    coinIndex = 0
    hero.pos == hero.pos.x 
    hero.pos == hero.pos.y 
    coins = hero.findNearestItem()
    if coins:
        coin = coins[coinIndex]
        hero.moveXY(hero.pos.x, hero.pos.y)
        coinIndex += 1
        pass

```

---

<div class="post-metadata">

**Author:** ![brotherofall](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/brotherofall/32/11594_2.png) [@brotherofall](https://discourse.codecombat.com/u/brotherofall)\
**Post date:** [April 15, 2020, 12:40am UTC](https://discourse.codecombat.com/t/shine-getter-level-help-pythin/20983/2 "2020-04-15T00:40:31Z")

</div>

@ZAX155

```python
while True:
    coinIndex = 0 
    hero.pos == hero.pos.x # remove
    hero.pos == hero.pos.y # remove
    coins = hero.findNearestItem() # change to hero.findItems()

# remove this section
    if coins: 
        coin = coins[coinIndex]
        hero.moveXY(hero.pos.x, hero.pos.y)
        coinIndex += 1
        pass

# replace with correct format just rewrite correctly

while coinIndex < coins.length

coin = coins[coinIndex]

if coin.value == ??? # What is the value for gold coin?

hero.moveXY(coin.pos.x, coin.pos.y)

coinIndex ++
```
